Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 2 | 2 | 0.996 | statement_sequence[5] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 223 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/rename/RenameModifications.java |
2 | 13 | 98 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/MoveModifications.java |
| ||||
MoveArguments arguments = new MoveArguments(target, args.getUpdateReferences()); IResource[] resourcesToMove = collectResourcesOfInterest(pack); Set allMembers = new HashSet(Arrays.asList(container.members())); for (int i = 0; i < resourcesToMove.length; i++) { IResource toMove = resourcesToMove[i]; getResourceModifications().addMove(toMove, arguments); allMembers.remove(toMove); } for (Iterator iter = allMembers.iterator(); iter.hasNext();) { IResource element = (IResource) iter.next(); if (element instanceof IFile) { getResourceModifications().addDelete(element); iter.remove(); } } |
| ||||
MoveArguments arguments = new MoveArguments(resourceDestination, args.getUpdateReferences()); IResource[] resourcesToMove = collectResourcesOfInterest(pack); Set allMembers = new HashSet(Arrays.asList(resourceSource.members())); for (int i = 0; i < resourcesToMove.length; i++) { IResource toMove = resourcesToMove[i]; getResourceModifications().addMove(toMove, arguments); allMembers.remove(toMove); } for (Iterator iter = allMembers.iterator(); iter.hasNext();) { IResource element = (IResource) iter.next(); if (element instanceof IFile) { getResourceModifications().addDelete(element); iter.remove(); } } |
| |||
MoveArguments arguments = new MoveArguments( [[#variablec01d8fa0]], args.getUpdateReferences()); IResource[] resourcesToMove = collectResourcesOfInterest(pack); Set allMembers = new HashSet(Arrays.asList( [[#variablec01d8fc0]].members())); for (int i = 0; i < resourcesToMove.length; i++) { IResource toMove = resourcesToMove[i]; getResourceModifications().addMove(toMove, arguments); allMembers.remove(toMove); } for (Iterator iter = allMembers.iterator(); iter.hasNext();) { IResource element = (IResource) iter.next(); if (element instanceof IFile) { getResourceModifications().addDelete(element); iter.remove(); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#c01d8fa0]] | resourceDestination |
1 | 2 | [[#c01d8fa0]] | target |
2 | 1 | [[#c01d8fc0]] | resourceSource |
2 | 2 | [[#c01d8fc0]] | container |