CloneSet4002


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7250.953block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17464
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgUtils.java
2787
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/util/JavaElementUtil.java
Clone Instance
1
Line Count
7
Source Line
464
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgUtils.java

                                                                                                                         {
                IPackageFragmentRoot[] roots = p.getPackageFragmentRoots();
                for (int i = 0; i < roots.length; i++) {
                        if (isPackageFragmentRootCorrespondingToProject(roots[i]))
                                return roots[i];
                }
                return null;
                                                                                                                         }


Clone Instance
2
Line Count
7
Source Line
87
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/util/JavaElementUtil.java

                                                                                      {
                IType[] types = cu.getTypes();
                for (int i = 0; i < types.length; i++) {
                        if (isMainType(types[i]))
                                return types[i];
                }
                return null;
                                                                                      }


Clone AbstractionParameter Count: 5Parameter Bindings

{
   [[#variableb4160480]][]  [[#variableb4160400]]= [[#variableb4160380]]. [[#variableb4160300]]();
  for (int i = 0; i <  [[#variableb4160400]].length; i++) {
    if ( [[#variableb4160240]]( [[#variableb4160400]][i]))
      return [[#variableb4160400]][i];
  }
  return null;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b4160480]]
IPackageFragmentRoot 
12[[#b4160480]]
IType 
21[[#b4160400]]
roots 
22[[#b4160400]]
types 
31[[#b4160380]]
p 
32[[#b4160380]]
cu 
41[[#b4160300]]
getPackageFragmentRoots 
42[[#b4160300]]
getTypes 
51[[#b4160240]]
isPackageFragmentRootCorrespondingToProject 
52[[#b4160240]]
isMainType