Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 1 | 0.962 | executable_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 183 | plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/JavaSourceLookupUtil.java |
2 | 9 | 618 | 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 root; } } } } |
| ||||
{ 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); } } } } |
| |||
{ 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#92d1e7c0]] | new PackageFragmentRootSourceLocation(root) |
1 | 2 | [[#92d1e7c0]] | root |