CloneSet6023


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7220.975block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17356
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/JavaElementResourceMapping.java
27371
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/JavaElementResourceMapping.java
Clone Instance
1
Line Count
7
Source Line
356
Source File
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;
                                                                          }


Clone Instance
2
Line Count
7
Source Line
371
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/JavaElementResourceMapping.java

                                                                   {
                // test if in a archive
                IPackageFragmentRoot root = (IPackageFragmentRoot) classFile.getAncestor(IJavaElement.PACKAGE_FRAGMENT_ROOT);
                if ( !root.isArchive()) {
                        return new ClassFileResourceMapping(classFile);
                }
                return null;
                                                                   }


Clone AbstractionParameter Count: 2Parameter Bindings

{
  // 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#77519500]]
classFile 
12[[#77519500]]
pack 
21[[#77519600]]
ClassFileResourceMapping 
22[[#77519600]]
PackageFragmentResourceMapping