CloneSet1704


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9220.990statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19348
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/BuildPathDialogAccess.java
210494
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/BuildPathDialogAccess.java
Clone Instance
1
Line Count
9
Source Line
348
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/BuildPathDialogAccess.java

                ArrayList usedJars = new ArrayList(usedEntries.length);
                IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
                for (int i = 0; i < usedEntries.length; i++) {
                        IResource resource = root.findMember(usedEntries[i]);
                        if (resource instanceof IFile) {
                                usedJars.add(resource);
                        }
                }
                IResource focus = initialSelection != null ? root.findMember(initialSelection):  null;


Clone Instance
2
Line Count
10
Source Line
494
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/BuildPathDialogAccess.java

                ArrayList usedContainers = new ArrayList(usedEntries.length);
                IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
                for (int i = 0; i < usedEntries.length; i++) {
                        IResource resource = root.findMember(usedEntries[i]);
                        if (resource instanceof IContainer) {
                                usedContainers.add(resource);
                        }
                }

                IResource focus = initialSelection != null ? root.findMember(initialSelection):  null;


Clone AbstractionParameter Count: 2Parameter Bindings

ArrayList  [[#variableb2f2a620]]= new ArrayList(usedEntries.length);
IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
for (int i = 0; i < usedEntries.length; i++) {
  IResource resource = root.findMember(usedEntries[i]);
  if (resource instanceof [[#variablebd398780]]) {
     [[#variableb2f2a620]].add(resource);
  }
}
IResource focus = initialSelection != null ? root.findMember(initialSelection): null;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b2f2a620]]
usedJars 
12[[#b2f2a620]]
usedContainers 
21[[#bd398780]]
IFile 
22[[#bd398780]]
IContainer