CloneSet2555


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
25240.966statement_sequence[10]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1251246
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/impl/AssistParser.java
2251302
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/impl/AssistParser.java
Clone Instance
1
Line Count
25
Source Line
1246
Source File
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/impl/AssistParser.java

        initialize();

        // simulate goForInitializer except that we don't want to balance brackets because they are not going to be balanced
        goForBlockStatementsopt();

        referenceContext = type;
        compilationUnit = unit;

        scanner.resetTo(initializer.sourceStart, bodyEnd(initializer)); // just after the beginning {
        consumeNestedMethod();
        try {
                parse();
        } catch (AbortCompilation ex) {
                lastAct = ERROR_ACTION;
          }
          finally {
                nestedMethod[nestedType]--;
          }
        if (lastAct == ERROR_ACTION) {
                return;
        }

        // attach the statements as we might be searching for a reference to a local type
        initializer.block.explicitDeclarations = realBlockStack[realBlockPtr-- ];
        int length;


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

        initialize();

        // simulate goForMethodBody except that we don't want to balance brackets because they are not going to be balanced
        goForBlockStatementsopt();

        referenceContext = md;
        compilationUnit = unit;

        scanner.resetTo(md.bodyStart, bodyEnd(md)); // reset the scanner to parser from { down to the cursor location
        consumeNestedMethod();
        try {
                parse();
        } catch (AbortCompilation ex) {
                lastAct = ERROR_ACTION;
          }
          finally {
                nestedMethod[nestedType]--;
          }
        if (lastAct == ERROR_ACTION) {
                return;
        }

        // attach the statements as we might be searching for a reference to a local type
        md.explicitDeclarations = realBlockStack[realBlockPtr-- ];
        int length;


Clone AbstractionParameter Count: 4Parameter Bindings

initialize();
// simulate goForMethodBody except that we don't want to balance brackets because they are not going to be balanced
// simulate goForInitializer except that we don't want to balance brackets because they are not going to be balanced
goForBlockStatementsopt();
referenceContext = [[#variable553d4ea0]];
compilationUnit = unit;
scanner.resetTo( [[#variable553d4ec0]]. [[#variable55e1f740]], bodyEnd( [[#variable553d4ec0]])); // reset the scanner to parser from { down to the cursor location // just after the beginning {
consumeNestedMethod();
try {
  parse();
}
catch (AbortCompilation ex) {
  lastAct = ERROR_ACTION;
}
finally {
  nestedMethod[nestedType]--;
}
if (lastAct == ERROR_ACTION) {
  return;
}
 [[#variable4efd5300]].explicitDeclarations = realBlockStack[realBlockPtr-- ];
int length;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#553d4ea0]]
md 
12[[#553d4ea0]]
type 
21[[#553d4ec0]]
md 
22[[#553d4ec0]]
initializer 
31[[#55e1f740]]
bodyStart 
32[[#55e1f740]]
sourceStart 
41[[#4efd5300]]
// attach the statements as we might be searching for a reference to a local type
md 
42[[#4efd5300]]
// attach the statements as we might be searching for a reference to a local type
initializer.block