Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 4 | 0.969 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 303 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarPackageReader.java |
2 | 6 | 312 | 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); } } |
| ||||
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); } } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#9eff5420]] | addFile |
1 | 2 | [[#9eff5420]] | addFolder |
2 | 1 | [[#9eff53c0]] | IFile |
2 | 2 | [[#9eff53c0]] | IFolder |
3 | 1 | [[#9eff5360]] | file |
3 | 2 | [[#9eff5360]] | folder |
4 | 1 | [[#9eff5260]] | getFile |
4 | 2 | [[#9eff5260]] | getFolder |