Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 1 | 0.965 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 1366 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java |
2 | 6 | 98 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/SearchResultUpdater.java |
| ||||
/** * Returns the element's parent. * * @return the parent or <code>null</code> if there's no parent */ private Object getParent(Object element) { if (element instanceof IJavaElement) return ((IJavaElement) element).getParent(); else if (element instanceof IResource) return ((IResource) element).getParent(); // else if (element instanceof IStorage) { // can't get parent - see bug 22376 // } return null; } |
| ||||
private Object getParent(Object object) { if (object instanceof IJavaElement) return ((IJavaElement) object).getParent(); else if (object instanceof IResource) return ((IResource) object).getParent(); return null; } |
| |||
/** * Returns the element's parent. * * @return the parent or <code>null</code> if there's no parent */ private Object getParent(Object [[#variablebb15c160]]) { if ( [[#variablebb15c160]]instanceof IJavaElement) return ((IJavaElement) [[#variablebb15c160]]).getParent(); else if ( [[#variablebb15c160]]instanceof IResource) return ((IResource) [[#variablebb15c160]]).getParent(); // else if (element instanceof IStorage) { // can't get parent - see bug 22376 // } return null; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#bb15c160]] | object |
1 | 2 | [[#bb15c160]] | element |