CloneSet1892


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17201.000statement_sequence[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
117434
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/impl/AssistParser.java
217493
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/impl/AssistParser.java
Clone Instance
1
Line Count
17
Source Line
434
Source File
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/impl/AssistParser.java

        this.lastCheckPoint = reference.sourceEnd + 1;
        compilationUnit.currentPackage = reference;

        if (currentToken == TokenNameSEMICOLON) {
                reference.declarationSourceEnd = scanner.currentPosition - 1;
        }
        else   {
                reference.declarationSourceEnd = (int) positions[length - 1];
        }
        //endPosition is just before the ;
        reference.declarationSourceStart = intStack[intPtr-- ];
        // flush comments defined prior to import statements
        reference.declarationSourceEnd = this.flushCommentsDefinedPriorTo(reference.declarationSourceEnd);
        // recovery
        if (currentElement != null) {
                lastCheckPoint = reference.declarationSourceEnd + 1;
                restartRecovery = true; // used to avoid branching back into the regular automaton              
        }


Clone Instance
2
Line Count
17
Source Line
493
Source File
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/impl/AssistParser.java

        this.lastCheckPoint = reference.sourceEnd + 1;
        compilationUnit.currentPackage = reference;

        if (currentToken == TokenNameSEMICOLON) {
                reference.declarationSourceEnd = scanner.currentPosition - 1;
        }
        else   {
                reference.declarationSourceEnd = (int) positions[length - 1];
        }
        //endPosition is just before the ;
        reference.declarationSourceStart = intStack[intPtr-- ];
        // flush comments defined prior to import statements
        reference.declarationSourceEnd = this.flushCommentsDefinedPriorTo(reference.declarationSourceEnd);
        // recovery
        if (currentElement != null) {
                lastCheckPoint = reference.declarationSourceEnd + 1;
                restartRecovery = true; // used to avoid branching back into the regular automaton              
        }


Clone AbstractionParameter Count: 0Parameter Bindings

this.lastCheckPoint = reference.sourceEnd + 1;
compilationUnit.currentPackage = reference;
if (currentToken == TokenNameSEMICOLON) {
  reference.declarationSourceEnd = scanner.currentPosition - 1;
}
else {
  reference.declarationSourceEnd = (int) positions[length - 1];
}
//endPosition is just before the ;
reference.declarationSourceStart = intStack[intPtr-- ];
// flush comments defined prior to import statements
reference.declarationSourceEnd = this.flushCommentsDefinedPriorTo(reference.declarationSourceEnd);
// recovery
if (currentElement != null) {
  lastCheckPoint = reference.declarationSourceEnd + 1;
  restartRecovery = true; // used to avoid branching back into the regular automaton              
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None