Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 2 | 0.975 | block |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 356 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/JavaElementResourceMapping.java |
2 | 7 | 371 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/JavaElementResourceMapping.java |
| ||||
{ // test if in an archive IPackageFragmentRoot root = (IPackageFragmentRoot) pack.getAncestor(IJavaElement.PACKAGE_FRAGMENT_ROOT); if ( !root.isArchive()) { return new PackageFragmentResourceMapping(pack); } return null; } |
| ||||
{ // test if in a archive IPackageFragmentRoot root = (IPackageFragmentRoot) classFile.getAncestor(IJavaElement.PACKAGE_FRAGMENT_ROOT); if ( !root.isArchive()) { return new ClassFileResourceMapping(classFile); } return null; } |
| |||
{ // test if in a archive // test if in an archive IPackageFragmentRoot root = (IPackageFragmentRoot) [[#variable77519500]].getAncestor(IJavaElement.PACKAGE_FRAGMENT_ROOT); if ( !root.isArchive()) { return new [[#variable77519600]]( [[#variable77519500]]); } return null; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#77519500]] | classFile |
1 | 2 | [[#77519500]] | pack |
2 | 1 | [[#77519600]] | ClassFileResourceMapping |
2 | 2 | [[#77519600]] | PackageFragmentResourceMapping |