CloneSet2320


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8220.961executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18910
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ExtractMethodRefactoring.java
28333
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/surround/SurroundWithTryCatchRefactoring.java
Clone Instance
1
Line Count
8
Source Line
910
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ExtractMethodRefactoring.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);
                               }


Clone Instance
2
Line Count
8
Source Line
333
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/surround/SurroundWithTryCatchRefactoring.java

                       {
                        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);
                       }


Clone AbstractionParameter Count: 2Parameter Bindings

{
  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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#99023d20]]
fSelectedNodes 
12[[#99023d20]]
selectedNodes 
21[[#a0898460]]
null 
22[[#a0898460]]
substitute