CloneSet1226


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
4260.956statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
14625
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/PushDownRefactoringProcessor.java
24632
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/PushDownRefactoringProcessor.java
Clone Instance
1
Line Count
4
Source Line
625
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/PushDownRefactoringProcessor.java

                                                        if (oldField != null) {
                                                                FieldDeclaration newField = createNewFieldDeclarationNode(infos[offset], sourceRewriter.getRoot(), mapping, unitRewriter.getASTRewrite(), oldField);
                                                                unitRewriter.getASTRewrite().getListRewrite(declaration, declaration.getBodyDeclarationsProperty()).insertAt(newField, ASTNodes.getInsertionIndex(newField, declaration.bodyDeclarations()), unitRewriter.createCategorizedGroupDescription(RefactoringCoreMessages.HierarchyRefactoring_add_member, SET_PUSH_DOWN));
                                                                ImportRewriteUtil.addImports(unitRewriter, oldField.getParent(), new HashMap(), new HashMap(), false);
                                                        }


Clone Instance
2
Line Count
4
Source Line
632
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/PushDownRefactoringProcessor.java

                                                        if (oldMethod != null) {
                                                                MethodDeclaration newMethod = createNewMethodDeclarationNode(infos[offset], sourceRewriter.getRoot(), mapping, unitRewriter, oldMethod);
                                                                unitRewriter.getASTRewrite().getListRewrite(declaration, declaration.getBodyDeclarationsProperty()).insertAt(newMethod, ASTNodes.getInsertionIndex(newMethod, declaration.bodyDeclarations()), unitRewriter.createCategorizedGroupDescription(RefactoringCoreMessages.HierarchyRefactoring_add_member, SET_PUSH_DOWN));
                                                                ImportRewriteUtil.addImports(unitRewriter, oldMethod, new HashMap(), new HashMap(), false);
                                                        }


Clone AbstractionParameter Count: 6Parameter Bindings

if ( [[#variable9c66b360]]!= null) {
   [[#variable9c66b2e0]]  [[#variable9c66b220]]= [[#variable9c66b180]](infos[offset], sourceRewriter.getRoot(), mapping,  [[#variable9c66b100]],  [[#variable9c66b360]]);
  unitRewriter.getASTRewrite().getListRewrite(declaration, declaration.getBodyDeclarationsProperty()).insertAt( [[#variable9c66b220]], ASTNodes.getInsertionIndex( [[#variable9c66b220]], declaration.bodyDeclarations()), unitRewriter.createCategorizedGroupDescription(RefactoringCoreMessages.HierarchyRefactoring_add_member, SET_PUSH_DOWN));
  ImportRewriteUtil.addImports(unitRewriter,  [[#variable9c66b0a0]], new HashMap(), new HashMap(), false);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9c66b360]]
oldField 
12[[#9c66b360]]
oldMethod 
21[[#9c66b2e0]]
FieldDeclaration 
22[[#9c66b2e0]]
MethodDeclaration 
31[[#9c66b220]]
newField 
32[[#9c66b220]]
newMethod 
41[[#9c66b180]]
createNewFieldDeclarationNode 
42[[#9c66b180]]
createNewMethodDeclarationNode 
51[[#9c66b100]]
unitRewriter.getASTRewrite() 
52[[#9c66b100]]
unitRewriter 
61[[#9c66b0a0]]
oldField.getParent() 
62[[#9c66b0a0]]
oldMethod