CloneSet2839


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7210.954executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17276
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/HierarchyProcessor.java
27767
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/PushDownRefactoringProcessor.java
Clone Instance
1
Line Count
7
Source Line
276
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/HierarchyProcessor.java

                                                               {
                        Expression newInitializer = null;
                        if (mapping.length > 0)
                                newInitializer = createPlaceholderForExpression(oldFieldFragment.getInitializer(), field.getCompilationUnit(), mapping, rewrite);
                        else
                                newInitializer = createPlaceholderForExpression(oldFieldFragment.getInitializer(), field.getCompilationUnit(), rewrite);
                        newFragment.setInitializer(newInitializer);
                                                               }


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

                                         {
                        Expression newInitializer = null;
                        if (mapping.length > 0)
                                newInitializer = createPlaceholderForExpression(initializer, field.getCompilationUnit(), mapping, rewrite);
                        else
                                newInitializer = createPlaceholderForExpression(initializer, field.getCompilationUnit(), rewrite);
                        newFragment.setInitializer(newInitializer);
                                         }


Clone AbstractionParameter Count: 1Parameter Bindings

{
  Expression newInitializer = null;
  if (mapping.length > 0)
    newInitializer = createPlaceholderForExpression( [[#variable5090c140]], field.getCompilationUnit(), mapping, rewrite);
  else
    newInitializer = createPlaceholderForExpression( [[#variable5090c140]], field.getCompilationUnit(), rewrite);
  newFragment.setInitializer(newInitializer);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5090c140]]
initializer 
12[[#5090c140]]
oldFieldFragment.getInitializer()