Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 4 | 0.969 | executable_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 66 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/LevelTreeContentProvider.java |
2 | 6 | 75 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/LevelTreeContentProvider.java |
| ||||
{ IJavaElement javaElement = (IJavaElement) possibleParent; for (int j = fCurrentLevel; j < MAX_LEVEL + 1; j++) { for (int i = 0; i < JAVA_ELEMENT_TYPES[j].length; i++) { if (javaElement.getElementType() == JAVA_ELEMENT_TYPES[j][i]) { return null; } } } } |
| ||||
{ IResource resource = (IResource) possibleParent; for (int j = fCurrentLevel; j < MAX_LEVEL + 1; j++) { for (int i = 0; i < RESOURCE_TYPES[j].length; i++) { if (resource.getType() == RESOURCE_TYPES[j][i]) { return null; } } } } |
| |||
{ [[#variable638093e0]] [[#variable63809360]]= ( [[#variable638093e0]]) possibleParent; for (int j = fCurrentLevel; j < MAX_LEVEL + 1; j++) { for (int i = 0; i < [[#variable638092e0]][j].length; i++) { if ( [[#variable63809360]]. [[#variable63809260]]() == [[#variable638092e0]][j][i]) { return null; } } } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#638093e0]] | IJavaElement |
1 | 2 | [[#638093e0]] | IResource |
2 | 1 | [[#63809360]] | javaElement |
2 | 2 | [[#63809360]] | resource |
3 | 1 | [[#638092e0]] | JAVA_ELEMENT_TYPES |
3 | 2 | [[#638092e0]] | RESOURCE_TYPES |
4 | 1 | [[#63809260]] | getElementType |
4 | 2 | [[#63809260]] | getType |