CloneSet1096


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11360.956block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111500
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgUtils.java
211513
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgUtils.java
311526
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgUtils.java
Clone Instance
1
Line Count
11
Source Line
500
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgUtils.java

                                                                                                           {
                if (pack == null)
                        return false;
                IJavaElement packParent = pack.getParent();
                if (packParent == null)
                        return false;
                if (packParent.equals(root))
                        return true;
                IResource packageResource = ResourceUtil.getResource(pack);
                IResource packageRootResource = ResourceUtil.getResource(root);
                return isParentInWorkspaceOrOnDisk(packageResource, packageRootResource);
                                                                                                           }


Clone Instance
2
Line Count
11
Source Line
513
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgUtils.java

                                                                                                              {
                if (root == null)
                        return false;
                IJavaElement rootParent = root.getParent();
                if (rootParent == null)
                        return false;
                if (rootParent.equals(root))
                        return true;
                IResource packageResource = ResourceUtil.getResource(root);
                IResource packageRootResource = ResourceUtil.getResource(javaProject);
                return isParentInWorkspaceOrOnDisk(packageResource, packageRootResource);
                                                                                                              }


Clone Instance
3
Line Count
11
Source Line
526
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgUtils.java

                                                                                                     {
                if (cu == null)
                        return false;
                IJavaElement cuParent = cu.getParent();
                if (cuParent == null)
                        return false;
                if (cuParent.equals(dest))
                        return true;
                IResource cuResource = ResourceUtil.getResource(cu);
                IResource packageResource = ResourceUtil.getResource(dest);
                return isParentInWorkspaceOrOnDisk(cuResource, packageResource);
                                                                                                     }


Clone AbstractionParameter Count: 6Parameter Bindings

{
  if ( [[#variableb8dbeba0]]== null)
    return false;
  IJavaElement  [[#variableb8dbeb60]]= [[#variableb8dbeba0]].getParent();
  if ( [[#variableb8dbeb60]]== null)
    return false;
  if ( [[#variableb8dbeb60]].equals( [[#variableb8dbea40]]))
    return true;
  IResource  [[#variableb8dbea00]]= ResourceUtil.getResource( [[#variableb8dbeba0]]);
  IResource  [[#variable603beee0]]= ResourceUtil.getResource( [[#variableb8dbea80]]);
  return isParentInWorkspaceOrOnDisk( [[#variableb8dbea00]],  [[#variable603beee0]]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b8dbeba0]]
cu 
12[[#b8dbeba0]]
root 
13[[#b8dbeba0]]
pack 
21[[#b8dbeb60]]
cuParent 
22[[#b8dbeb60]]
rootParent 
23[[#b8dbeb60]]
packParent 
31[[#b8dbea40]]
dest 
32[[#b8dbea40]]
root 
33[[#b8dbea40]]
root 
41[[#b8dbea00]]
cuResource 
42[[#b8dbea00]]
packageResource 
43[[#b8dbea00]]
packageResource 
51[[#603beee0]]
packageResource 
52[[#603beee0]]
packageRootResource 
53[[#603beee0]]
packageRootResource 
61[[#b8dbea80]]
dest 
62[[#b8dbea80]]
javaProject 
63[[#b8dbea80]]
root