CloneSet3004


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5220.976statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
163398
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
253927
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
Clone Instance
1
Line Count
6
Source Line
3398
Source File
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
        }


Clone Instance
2
Line Count
5
Source Line
3927
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java

        // 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
        }


Clone AbstractionParameter Count: 2Parameter Bindings

// 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5c340d20]]
LocalDeclaration 
12[[#5c340d20]]
FieldDeclaration 
21[[#5c340d80]]
localDeclaration 
22[[#5c340d80]]
fieldDeclaration