Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 5 | 0.953 | block |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 464 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgUtils.java |
2 | 7 | 87 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/util/JavaElementUtil.java |
| ||||
{ IPackageFragmentRoot[] roots = p.getPackageFragmentRoots(); for (int i = 0; i < roots.length; i++) { if (isPackageFragmentRootCorrespondingToProject(roots[i])) return roots[i]; } return null; } |
| ||||
{ IType[] types = cu.getTypes(); for (int i = 0; i < types.length; i++) { if (isMainType(types[i])) return types[i]; } return null; } |
| |||
{ [[#variableb4160480]][] [[#variableb4160400]]= [[#variableb4160380]]. [[#variableb4160300]](); for (int i = 0; i < [[#variableb4160400]].length; i++) { if ( [[#variableb4160240]]( [[#variableb4160400]][i])) return [[#variableb4160400]][i]; } return null; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b4160480]] | IPackageFragmentRoot |
1 | 2 | [[#b4160480]] | IType |
2 | 1 | [[#b4160400]] | roots |
2 | 2 | [[#b4160400]] | types |
3 | 1 | [[#b4160380]] | p |
3 | 2 | [[#b4160380]] | cu |
4 | 1 | [[#b4160300]] | getPackageFragmentRoots |
4 | 2 | [[#b4160300]] | getTypes |
5 | 1 | [[#b4160240]] | isPackageFragmentRootCorrespondingToProject |
5 | 2 | [[#b4160240]] | isMainType |