CloneSet921


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13220.996statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113223
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/rename/RenameModifications.java
21398
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/MoveModifications.java
Clone Instance
1
Line Count
13
Source Line
223
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/rename/RenameModifications.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();
                        }
                }


Clone Instance
2
Line Count
13
Source Line
98
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/MoveModifications.java

                        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();
                                }
                        }


Clone AbstractionParameter Count: 2Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#c01d8fa0]]
resourceDestination 
12[[#c01d8fa0]]
target 
21[[#c01d8fc0]]
resourceSource 
22[[#c01d8fc0]]
container