Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 2 | 0.961 | executable_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 910 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ExtractMethodRefactoring.java |
2 | 8 | 333 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/surround/SurroundWithTryCatchRefactoring.java |
| ||||
{ ListRewrite source = fRewriter.getListRewrite( selectedNodes[0].getParent(), (ChildListPropertyDescriptor) selectedNodes[0].getLocationInParent()); ASTNode toMove = source.createMoveTarget( selectedNodes[0], selectedNodes[selectedNodes.length - 1], replacementNode, substitute ); statements.insertLast(toMove, substitute); } |
| ||||
{ ListRewrite source = fRewriter.getListRewrite( fSelectedNodes[0].getParent(), (ChildListPropertyDescriptor) fSelectedNodes[0].getLocationInParent()); ASTNode toMove = source.createMoveTarget( fSelectedNodes[0], fSelectedNodes[fSelectedNodes.length - 1], replacementNode, null ); statements.insertLast(toMove, null); } |
| |||
{ ListRewrite source = fRewriter.getListRewrite( [[#variable99023d20]][0].getParent(), (ChildListPropertyDescriptor) [[#variable99023d20]][0].getLocationInParent()); ASTNode toMove = source.createMoveTarget( [[#variable99023d20]][0], [[#variable99023d20]][ [[#variable99023d20]].length - 1], replacementNode, [[#variablea0898460]]); statements.insertLast(toMove, [[#variablea0898460]]); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#99023d20]] | fSelectedNodes |
1 | 2 | [[#99023d20]] | selectedNodes |
2 | 1 | [[#a0898460]] | null |
2 | 2 | [[#a0898460]] | substitute |