Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
25 | 2 | 4 | 0.966 | statement_sequence[10] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 25 | 1246 | plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/impl/AssistParser.java |
2 | 25 | 1302 | 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; |
| ||||
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; |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#553d4ea0]] | md |
1 | 2 | [[#553d4ea0]] | type |
2 | 1 | [[#553d4ec0]] | md |
2 | 2 | [[#553d4ec0]] | initializer |
3 | 1 | [[#55e1f740]] | bodyStart |
3 | 2 | [[#55e1f740]] | sourceStart |
4 | 1 | [[#4efd5300]] | // attach the statements as we might be searching for a reference to a local type md |
4 | 2 | [[#4efd5300]] | // attach the statements as we might be searching for a reference to a local type initializer.block |