CloneSet2489


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6210.960statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16164
plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/JavaSourceLookupUtil.java
26600
plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/sourcelookup/JavaSourceLocator.java
Clone Instance
1
Line Count
6
Source Line
164
Source File
plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/JavaSourceLookupUtil.java

                                                for (int j = 0; j < allRoots.length; j++) {
                                                        IPackageFragmentRoot root = allRoots[j];
                                                        if (root.isExternal() && root.getPath().equals(new Path(entry.getLocation()))) {
                                                                if (isSourceAttachmentEqual(root, entry)) {
                                                                        // use package fragment root
                                                                        return root;
                                                                }
                                                        }
                                                }


Clone Instance
2
Line Count
6
Source Line
600
Source File
plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/sourcelookup/JavaSourceLocator.java

                                        for (int j = 0; j < allRoots.length; j++) {
                                                IPackageFragmentRoot root = allRoots[j];
                                                if (root.isExternal() && root.getPath().equals(new Path(entry.getLocation()))) {
                                                        if (isSourceAttachmentEqual(root, entry)) {
                                                                // use package fragment root
                                                                return new PackageFragmentRootSourceLocation(root);
                                                        }
                                                }
                                        }


Clone AbstractionParameter Count: 1Parameter Bindings

for (int j = 0; j < allRoots.length; j++) {
  IPackageFragmentRoot root = allRoots[j];
  if (root.isExternal() && root.getPath().equals(new Path(entry.getLocation()))) {
    if (isSourceAttachmentEqual(root, entry)) {
      // use package fragment root
      return [[#variable91757c40]];
    }
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#91757c40]]
root 
12[[#91757c40]]
new PackageFragmentRootSourceLocation(root)