Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
36 | 2 | 5 | 0.958 | statement_sequence[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 39 | 294 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTRecoveryPropagator.java |
2 | 36 | 34 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTSyntaxErrorPropagator.java |
| ||||
switch (problem.getID()) { case IProblem.ParsingErrorOnKeywordNoSuggestion: case IProblem.ParsingErrorOnKeyword: case IProblem.ParsingError: case IProblem.ParsingErrorNoSuggestion: case IProblem.ParsingErrorInsertTokenBefore: case IProblem.ParsingErrorInsertTokenAfter: case IProblem.ParsingErrorDeleteToken: case IProblem.ParsingErrorDeleteTokens: case IProblem.ParsingErrorMergeTokens: case IProblem.ParsingErrorInvalidToken: case IProblem.ParsingErrorMisplacedConstruct: case IProblem.ParsingErrorReplaceTokens: case IProblem.ParsingErrorNoSuggestionForTokens: case IProblem.ParsingErrorUnexpectedEOF: case IProblem.ParsingErrorInsertToComplete: case IProblem.ParsingErrorInsertToCompleteScope: case IProblem.ParsingErrorInsertToCompletePhrase: case IProblem.EndOfSource: case IProblem.InvalidHexa: case IProblem.InvalidOctal: case IProblem.InvalidCharacterConstant: case IProblem.InvalidEscape: case IProblem.InvalidInput: case IProblem.InvalidUnicodeEscape: case IProblem.InvalidFloat: case IProblem.NullSourceString: case IProblem.UnterminatedString: case IProblem.UnterminatedComment: case IProblem.InvalidDigit: break; default: this.usedOrIrrelevantProblems[i] = true; continue next; } int problemStart = problem.getSourceStart(); int problemEnd = problem.getSourceEnd(); |
| ||||
switch (problem.getID()) { case IProblem.ParsingErrorOnKeywordNoSuggestion: case IProblem.ParsingErrorOnKeyword: case IProblem.ParsingError: case IProblem.ParsingErrorNoSuggestion: case IProblem.ParsingErrorInsertTokenBefore: case IProblem.ParsingErrorInsertTokenAfter: case IProblem.ParsingErrorDeleteToken: case IProblem.ParsingErrorDeleteTokens: case IProblem.ParsingErrorMergeTokens: case IProblem.ParsingErrorInvalidToken: case IProblem.ParsingErrorMisplacedConstruct: case IProblem.ParsingErrorReplaceTokens: case IProblem.ParsingErrorNoSuggestionForTokens: case IProblem.ParsingErrorUnexpectedEOF: case IProblem.ParsingErrorInsertToComplete: case IProblem.ParsingErrorInsertToCompleteScope: case IProblem.ParsingErrorInsertToCompletePhrase: case IProblem.EndOfSource: case IProblem.InvalidHexa: case IProblem.InvalidOctal: case IProblem.InvalidCharacterConstant: case IProblem.InvalidEscape: case IProblem.InvalidInput: case IProblem.InvalidUnicodeEscape: case IProblem.InvalidFloat: case IProblem.NullSourceString: case IProblem.UnterminatedString: case IProblem.UnterminatedComment: case IProblem.InvalidDigit: break; default: continue search; } int position = problem.getSourceStart(); int start = node.getStartPosition(); |
| |||
switch (problem.getID()) { case IProblem.ParsingErrorOnKeywordNoSuggestion: case IProblem.ParsingErrorOnKeyword: case IProblem.ParsingError: case IProblem.ParsingErrorNoSuggestion: case IProblem.ParsingErrorInsertTokenBefore: case IProblem.ParsingErrorInsertTokenAfter: case IProblem.ParsingErrorDeleteToken: case IProblem.ParsingErrorDeleteTokens: case IProblem.ParsingErrorMergeTokens: case IProblem.ParsingErrorInvalidToken: case IProblem.ParsingErrorMisplacedConstruct: case IProblem.ParsingErrorReplaceTokens: case IProblem.ParsingErrorNoSuggestionForTokens: case IProblem.ParsingErrorUnexpectedEOF: case IProblem.ParsingErrorInsertToComplete: case IProblem.ParsingErrorInsertToCompleteScope: case IProblem.ParsingErrorInsertToCompletePhrase: case IProblem.EndOfSource: case IProblem.InvalidHexa: case IProblem.InvalidOctal: case IProblem.InvalidCharacterConstant: case IProblem.InvalidEscape: case IProblem.InvalidInput: case IProblem.InvalidUnicodeEscape: case IProblem.InvalidFloat: case IProblem.NullSourceString: case IProblem.UnterminatedString: case IProblem.UnterminatedComment: case IProblem.InvalidDigit: break; default: [[#variable780f8300]] } int [[#variable780f8240]]= problem.getSourceStart(); int [[#variable62e59260]]= [[#variablea3187aa0]]. [[#variable780f8180]](); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#780f8300]] | continue search; |
1 | 2 | [[#780f8300]] | this.usedOrIrrelevantProblems[i] = true; continue next; |
2 | 1 | [[#780f8240]] | position |
2 | 2 | [[#780f8240]] | problemStart |
3 | 1 | [[#62e59260]] | start |
3 | 2 | [[#62e59260]] | problemEnd |
4 | 1 | [[#a3187aa0]] | node |
4 | 2 | [[#a3187aa0]] | problem |
5 | 1 | [[#780f8180]] | getStartPosition |
5 | 2 | [[#780f8180]] | getSourceEnd |