CloneSet2715


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6210.958statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16206
plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/JavaSourceLookupUtil.java
26638
plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/sourcelookup/JavaSourceLocator.java
Clone Instance
1
Line Count
6
Source Line
206
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(entry.getPath())) {
                                                                if (isSourceAttachmentEqual(root, entry)) {
                                                                        // use package fragment root
                                                                        return root;
                                                                }
                                                        }
                                                }


Clone Instance
2
Line Count
6
Source Line
638
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(entry.getPath())) {
                                                        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(entry.getPath())) {
    if (isSourceAttachmentEqual(root, entry)) {
      // use package fragment root
      return [[#variable6187bac0]];
    }
  }
}
 

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