Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 2 | 0 | 1.000 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 389 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/PackagesViewHierarchicalContentProvider.java |
2 | 12 | 278 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageFragmentProvider.java |
| ||||
private Object findNextLevelParentByElementName(IPackageFragment child) { String name = child.getElementName(); int index = name.lastIndexOf('.'); if (index != -1) { String realParentName = name.substring(0, index); IPackageFragment element = ((IPackageFragmentRoot) child.getParent()).getPackageFragment(realParentName); if (element.exists()) { return element; } } return child.getParent(); } |
| ||||
private Object findNextLevelParentByElementName(IPackageFragment child) { String name = child.getElementName(); int index = name.lastIndexOf('.'); if (index != -1) { String realParentName = name.substring(0, index); IPackageFragment element = ((IPackageFragmentRoot) child.getParent()).getPackageFragment(realParentName); if (element.exists()) { return element; } } return child.getParent(); } |
| |||
private Object findNextLevelParentByElementName(IPackageFragment child) { String name = child.getElementName(); int index = name.lastIndexOf('.'); if (index != -1) { String realParentName = name.substring(0, index); IPackageFragment element = ((IPackageFragmentRoot) child.getParent()).getPackageFragment(realParentName); if (element.exists()) { return element; } } return child.getParent(); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |