Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
11 | 2 | 6 | 0.951 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 11 | 134 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ParentChecker.java |
2 | 11 | 147 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ParentChecker.java |
| ||||
private void removeJavaElementsDescendantsOfJavaElements() { List subElements = new ArrayList(3); for (int i = 0; i < fJavaElements.length; i++) { IJavaElement subElement = fJavaElements[i]; for (int j = 0; j < fJavaElements.length; j++) { IJavaElement superElement = fJavaElements[j]; if (isDescendantOf(subElement, superElement)) subElements.add(subElement); } } removeFromSetToDelete((IJavaElement[]) subElements.toArray(new IJavaElement[subElements.size()])); } |
| ||||
private void removeResourcesDescendantsOfResources() { List subResources = new ArrayList(3); for (int i = 0; i < fResources.length; i++) { IResource subResource = fResources[i]; for (int j = 0; j < fResources.length; j++) { IResource superResource = fResources[j]; if (isDescendantOf(subResource, superResource)) subResources.add(subResource); } } removeFromSetToDelete((IResource[]) subResources.toArray(new IResource[subResources.size()])); } |
| |||
private void [[#variable52e76080]]() { List [[#variable52e76020]]= new ArrayList(3); for (int i = 0; i < [[#variable9bb1dfe0]].length; i++) { [[#variable9bb1d020]] [[#variable9bb1dda0]]= [[#variable9bb1dfe0]][i]; for (int j = 0; j < [[#variable9bb1dfe0]].length; j++) { [[#variable9bb1d020]] [[#variable9bb1de20]]= [[#variable9bb1dfe0]][j]; if (isDescendantOf( [[#variable9bb1dda0]], [[#variable9bb1de20]])) [[#variable52e76020]].add( [[#variable9bb1dda0]]); } } removeFromSetToDelete(( [[#variable9bb1d020]][]) [[#variable52e76020]].toArray(new [[#variable9bb1d020]][ [[#variable52e76020]].size()])); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#52e76080]] | removeJavaElementsDescendantsOfJavaElements |
1 | 2 | [[#52e76080]] | removeResourcesDescendantsOfResources |
2 | 1 | [[#52e76020]] | subElements |
2 | 2 | [[#52e76020]] | subResources |
3 | 1 | [[#9bb1dfe0]] | fJavaElements |
3 | 2 | [[#9bb1dfe0]] | fResources |
4 | 1 | [[#9bb1d020]] | IJavaElement |
4 | 2 | [[#9bb1d020]] | IResource |
5 | 1 | [[#9bb1dda0]] | subElement |
5 | 2 | [[#9bb1dda0]] | subResource |
6 | 1 | [[#9bb1de20]] | superElement |
6 | 2 | [[#9bb1de20]] | superResource |