Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
19 | 3 | 5 | 0.967 | block |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 19 | 1429 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgPolicyFactory.java |
2 | 19 | 1453 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgPolicyFactory.java |
3 | 19 | 1475 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgPolicyFactory.java |
| ||||
{ if (isNewNameOk(destination, cu.getElementName())) return null; if ( ! ReorgUtils.isParentInWorkspaceOrOnDisk(cu, destination)) return null; int i = 1; while (true) { String newName; if (i == 1) newName = Messages.format(RefactoringCoreMessages.CopyRefactoring_cu_copyOf1, cu.getElementName()); else newName = Messages.format(RefactoringCoreMessages.CopyRefactoring_cu_copyOfMore, new String[] { String.valueOf(i), cu.getElementName() } ); if (isNewNameOk(destination, newName) && ! fAutoGeneratedNewNames.contains(newName)) { fAutoGeneratedNewNames.add(newName); return removeTrailingJava(newName); } i++; } } |
| ||||
{ if (isNewNameOk(destination, res.getName())) return null; if ( ! ReorgUtils.isParentInWorkspaceOrOnDisk(res, destination)) return null; int i = 1; while (true) { String newName; if (i == 1) newName = Messages.format(RefactoringCoreMessages.CopyRefactoring_resource_copyOf1, res.getName()); else newName = Messages.format(RefactoringCoreMessages.CopyRefactoring_resource_copyOfMore, new String[] { String.valueOf(i), res.getName() } ); if (isNewNameOk(destination, newName) && ! fAutoGeneratedNewNames.contains(newName)) { fAutoGeneratedNewNames.add(newName); return newName; } i++; } } |
| ||||
{ if (isNewNameOk(destination, pack.getElementName())) return null; if ( ! ReorgUtils.isParentInWorkspaceOrOnDisk(pack, destination)) return null; int i = 1; while (true) { String newName; if (i == 1) newName = Messages.format(RefactoringCoreMessages.CopyRefactoring_package_copyOf1, pack.getElementName()); else newName = Messages.format(RefactoringCoreMessages.CopyRefactoring_package_copyOfMore, new String[] { String.valueOf(i), pack.getElementName() } ); if (isNewNameOk(destination, newName) && ! fAutoGeneratedNewNames.contains(newName)) { fAutoGeneratedNewNames.add(newName); return newName; } i++; } } |
| |||
{ if (isNewNameOk(destination, [[#variableb2415680]]. [[#variableb2415560]]())) return null; if ( !ReorgUtils.isParentInWorkspaceOrOnDisk( [[#variableb2415680]], destination)) return null; int i = 1; while (true) { String newName; if (i == 1) newName = Messages.format(RefactoringCoreMessages. [[#variable59d87160]], [[#variableb2415680]]. [[#variableb2415560]]()); else newName = Messages.format(RefactoringCoreMessages. [[#variable59d87100]], new String[] { String.valueOf(i), [[#variableb2415680]]. [[#variableb2415560]]() } ); if (isNewNameOk(destination, newName) && !fAutoGeneratedNewNames.contains(newName)) { fAutoGeneratedNewNames.add(newName); return [[#variableb2415580]]; } i++; } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b2415680]] | cu |
1 | 2 | [[#b2415680]] | res |
1 | 3 | [[#b2415680]] | pack |
2 | 1 | [[#b2415560]] | getElementName |
2 | 2 | [[#b2415560]] | getName |
2 | 3 | [[#b2415560]] | getElementName |
3 | 1 | [[#59d87160]] | CopyRefactoring_cu_copyOf1 |
3 | 2 | [[#59d87160]] | CopyRefactoring_resource_copyOf1 |
3 | 3 | [[#59d87160]] | CopyRefactoring_package_copyOf1 |
4 | 1 | [[#59d87100]] | CopyRefactoring_cu_copyOfMore |
4 | 2 | [[#59d87100]] | CopyRefactoring_resource_copyOfMore |
4 | 3 | [[#59d87100]] | CopyRefactoring_package_copyOfMore |
5 | 1 | [[#b2415580]] | removeTrailingJava(newName) |
5 | 2 | [[#b2415580]] | newName |
5 | 3 | [[#b2415580]] | newName |