CloneSet7442


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17210.990statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1173790
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionParser.java
2171212
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/select/SelectionParser.java
Clone Instance
1
Line Count
17
Source Line
3790
Source File
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionParser.java

        /* expose parser state to recovery state */
        currentElement.updateFromParserState();

        /* may be able to retrieve completionNode as an orphan, and then attach it */
        this.completionIdentifierCheck();
        this.attachOrphanCompletionNode();

        // if an assist node has been found and a recovered element exists,
        // mark enclosing blocks as to be preserved
        if (this.assistNode != null && this.currentElement != null) {
                currentElement.preserveEnclosingBlocks();
        }

        /* check and update recovered state based on current token,
                this action is also performed when shifting token after recovery
                got activated once. 
        */
        this.recoveryTokenCheck();


Clone Instance
2
Line Count
17
Source Line
1212
Source File
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/select/SelectionParser.java

        /* expose parser state to recovery state */
        currentElement.updateFromParserState();

        /* may be able to retrieve completionNode as an orphan, and then attach it */
        this.selectionIdentifierCheck();
        this.attachOrphanCompletionNode();

        // if an assist node has been found and a recovered element exists,
        // mark enclosing blocks as to be preserved
        if (this.assistNode != null && this.currentElement != null) {
                currentElement.preserveEnclosingBlocks();
        }

        /* check and update recovered state based on current token,
                this action is also performed when shifting token after recovery
                got activated once. 
        */
        this.recoveryTokenCheck();


Clone AbstractionParameter Count: 1Parameter Bindings

/* expose parser state to recovery state */
currentElement.updateFromParserState();
/* may be able to retrieve completionNode as an orphan, and then attach it */
this. [[#variable58976140]]();
this.attachOrphanCompletionNode();
// if an assist node has been found and a recovered element exists,
// mark enclosing blocks as to be preserved
if (this.assistNode != null && this.currentElement != null) {
  currentElement.preserveEnclosingBlocks();
}
/* check and update recovered state based on current token,
                this action is also performed when shifting token after recovery
                got activated once. 
        */
this.recoveryTokenCheck();
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#58976140]]
completionIdentifierCheck 
12[[#58976140]]
selectionIdentifierCheck