Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 1 | 0.987 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 79 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaElementContainmentAdapter.java |
2 | 8 | 115 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaElementContainmentAdapter.java |
| ||||
private boolean check(IJavaElement ancestor, IJavaElement descendent) { descendent = descendent.getParent(); while (descendent != null) { if (ancestor.equals(descendent)) return true; descendent = descendent.getParent(); } return false; } |
| ||||
private boolean check(IResource ancestor, IResource descendent) { descendent = descendent.getParent(); while (descendent != null) { if (ancestor.equals(descendent)) return true; descendent = descendent.getParent(); } return false; } |
| |||
private boolean check( [[#variable57c81f20]] ancestor, [[#variable57c81f20]] descendent) { descendent = descendent.getParent(); while (descendent != null) { if (ancestor.equals(descendent)) return true; descendent = descendent.getParent(); } return false; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#57c81f20]] | IJavaElement |
1 | 2 | [[#57c81f20]] | IResource |