Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 2 | 2 | 0.976 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 3398 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java |
2 | 5 | 3927 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java |
| ||||
// See consumeLocalVariableDeclarationDefaultModifier() in case of change: duplicated code // FieldDeclaration ::= Modifiersopt Type VariableDeclarators ';' /* this.astStack : this.expressionStack: Expression Expression ...... Expression this.identifierStack : type identifier identifier ...... identifier this.intStack : typeDim dim dim dim ==> this.astStack : FieldDeclaration FieldDeclaration ...... FieldDeclaration this.expressionStack : this.identifierStack : this.intStack : */ int variableDeclaratorsCounter = this.astLengthStack[this.astLengthPtr]; for (int i = variableDeclaratorsCounter - 1; i >= 0; i--) { FieldDeclaration fieldDeclaration = (FieldDeclaration) this.astStack[this.astPtr - i]; fieldDeclaration.declarationSourceEnd = this.endStatementPosition; fieldDeclaration.declarationEnd = this.endStatementPosition; // semi-colon included } |
| ||||
// update source end to include the semi-colon int variableDeclaratorsCounter = this.astLengthStack[this.astLengthPtr]; for (int i = variableDeclaratorsCounter - 1; i >= 0; i--) { LocalDeclaration localDeclaration = (LocalDeclaration) this.astStack[this.astPtr - i]; localDeclaration.declarationSourceEnd = this.endStatementPosition; localDeclaration.declarationEnd = this.endStatementPosition; // semi-colon included } |
| |||
// update source end to include the semi-colon // See consumeLocalVariableDeclarationDefaultModifier() in case of change: duplicated code // FieldDeclaration ::= Modifiersopt Type VariableDeclarators ';' /* this.astStack : this.expressionStack: Expression Expression ...... Expression this.identifierStack : type identifier identifier ...... identifier this.intStack : typeDim dim dim dim ==> this.astStack : FieldDeclaration FieldDeclaration ...... FieldDeclaration this.expressionStack : this.identifierStack : this.intStack : */ int variableDeclaratorsCounter = this.astLengthStack[this.astLengthPtr]; for (int i = variableDeclaratorsCounter - 1; i >= 0; i--) { [[#variable5c340d20]] [[#variable5c340d80]]= ( [[#variable5c340d20]]) this.astStack[this.astPtr - i]; [[#variable5c340d80]].declarationSourceEnd = this.endStatementPosition; [[#variable5c340d80]].declarationEnd = this.endStatementPosition; // semi-colon included } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5c340d20]] | LocalDeclaration |
1 | 2 | [[#5c340d20]] | FieldDeclaration |
2 | 1 | [[#5c340d80]] | localDeclaration |
2 | 2 | [[#5c340d80]] | fieldDeclaration |