CloneSet2360


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9210.962executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19183
plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/JavaSourceLookupUtil.java
29618
plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/sourcelookup/JavaSourceLocator.java
Clone Instance
1
Line Count
9
Source Line
183
Source File
plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/JavaSourceLookupUtil.java

                                                                     {
                                        IPackageFragmentRoot root = jp.getPackageFragmentRoot(resource);
                                        IPackageFragmentRoot[] allRoots = jp.getPackageFragmentRoots();
                                        for (int j = 0; j < allRoots.length; j++) {
                                                if (allRoots[j].equals(root)) {
                                                        // ensure source attachment paths match
                                                        if (isSourceAttachmentEqual(root, entry)) {
                                                                // use package fragment root
                                                                return root;
                                                        }
                                                }
                                        }
                                                                     }


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

                                                               {
                                        IPackageFragmentRoot root = jp.getPackageFragmentRoot(resource);
                                        IPackageFragmentRoot[] allRoots = jp.getPackageFragmentRoots();
                                        for (int j = 0; j < allRoots.length; j++) {
                                                if (allRoots[j].equals(root)) {
                                                        // ensure source attachment paths match
                                                        if (isSourceAttachmentEqual(root, entry)) {
                                                                // use package fragment root
                                                                return new PackageFragmentRootSourceLocation(root);
                                                        }
                                                }
                                        }
                                                               }


Clone AbstractionParameter Count: 1Parameter Bindings

{
  IPackageFragmentRoot root = jp.getPackageFragmentRoot(resource);
  IPackageFragmentRoot[] allRoots = jp.getPackageFragmentRoots();
  for (int j = 0; j < allRoots.length; j++) {
    if (allRoots[j].equals(root)) {
      // ensure source attachment paths match
      if (isSourceAttachmentEqual(root, entry)) {
        // use package fragment root
        return [[#variable92d1e7c0]];
      }
    }
  }
}
 

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