Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 3 | 0.976 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 80 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ParentChecker.java |
2 | 10 | 92 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ParentChecker.java |
| ||||
private boolean javaElementsHaveCommonParent() { if (fJavaElements.length == 0) return true; IJavaElement firstParent = fJavaElements[0].getParent(); Assert.isNotNull(firstParent); //this should never happen for (int i = 1; i < fJavaElements.length; i++) { if ( ! firstParent.equals(fJavaElements[i].getParent())) return false; } return true; } |
| ||||
private boolean resourcesHaveCommonParent() { if (fResources.length == 0) return true; IResource firstParent = fResources[0].getParent(); Assert.isNotNull(firstParent); for (int i = 1; i < fResources.length; i++) { if ( ! firstParent.equals(fResources[i].getParent())) return false; } return true; } |
| |||
private boolean [[#variable64140e60]]() { if ( [[#variable64140de0]].length == 0) return true; [[#variable64140d80]] firstParent = [[#variable64140de0]][0].getParent(); Assert.isNotNull(firstParent); //this should never happen for (int i = 1; i < [[#variable64140de0]].length; i++) { if ( !firstParent.equals( [[#variable64140de0]][i].getParent())) return false; } return true; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#64140e60]] | javaElementsHaveCommonParent |
1 | 2 | [[#64140e60]] | resourcesHaveCommonParent |
2 | 1 | [[#64140de0]] | fJavaElements |
2 | 2 | [[#64140de0]] | fResources |
3 | 1 | [[#64140d80]] | IJavaElement |
3 | 2 | [[#64140d80]] | IResource |