Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
11 | 3 | 6 | 0.956 | block |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 11 | 500 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgUtils.java |
2 | 11 | 513 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgUtils.java |
3 | 11 | 526 | 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); } |
| ||||
{ 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); } |
| ||||
{ 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); } |
| |||
{ 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b8dbeba0]] | cu |
1 | 2 | [[#b8dbeba0]] | root |
1 | 3 | [[#b8dbeba0]] | pack |
2 | 1 | [[#b8dbeb60]] | cuParent |
2 | 2 | [[#b8dbeb60]] | rootParent |
2 | 3 | [[#b8dbeb60]] | packParent |
3 | 1 | [[#b8dbea40]] | dest |
3 | 2 | [[#b8dbea40]] | root |
3 | 3 | [[#b8dbea40]] | root |
4 | 1 | [[#b8dbea00]] | cuResource |
4 | 2 | [[#b8dbea00]] | packageResource |
4 | 3 | [[#b8dbea00]] | packageResource |
5 | 1 | [[#603beee0]] | packageResource |
5 | 2 | [[#603beee0]] | packageRootResource |
5 | 3 | [[#603beee0]] | packageRootResource |
6 | 1 | [[#b8dbea80]] | dest |
6 | 2 | [[#b8dbea80]] | javaProject |
6 | 3 | [[#b8dbea80]] | root |