CloneSet3396


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6240.969class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16303
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarPackageReader.java
26312
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarPackageReader.java
Clone Instance
1
Line Count
6
Source Line
303
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarPackageReader.java

        private void addFile(Set selectedElements, Element element) throws IOException {
                IPath path = getPath(element);
                if (path != null) {
                        IFile file = JavaPlugin.getWorkspace().getRoot().getFile(path);
                        if (file != null)
                                selectedElements.add(file);
                }
        }


Clone Instance
2
Line Count
6
Source Line
312
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarPackageReader.java

        private void addFolder(Set selectedElements, Element element) throws IOException {
                IPath path = getPath(element);
                if (path != null) {
                        IFolder folder = JavaPlugin.getWorkspace().getRoot().getFolder(path);
                        if (folder != null)
                                selectedElements.add(folder);
                }
        }


Clone AbstractionParameter Count: 4Parameter Bindings

private void [[#variable9eff5420]](Set selectedElements, Element element) throws IOException {
  IPath path = getPath(element);
  if (path != null) {
     [[#variable9eff53c0]]  [[#variable9eff5360]]= JavaPlugin.getWorkspace().getRoot(). [[#variable9eff5260]](path);
    if ( [[#variable9eff5360]]!= null)
      selectedElements.add( [[#variable9eff5360]]);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9eff5420]]
addFile 
12[[#9eff5420]]
addFolder 
21[[#9eff53c0]]
IFile 
22[[#9eff53c0]]
IFolder 
31[[#9eff5360]]
file 
32[[#9eff5360]]
folder 
41[[#9eff5260]]
getFile 
42[[#9eff5260]]
getFolder