Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 2 | 2 | 0.980 | statement_sequence[4] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 1047 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ClassScope.java |
2 | 12 | 1066 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ClassScope.java |
| ||||
if (sourceType == parentType) { problemReporter().hierarchyCircularity(sourceType, superType, reference); sourceType.tagBits |= TagBits.HierarchyHasProblems; superType.tagBits |= TagBits.HierarchyHasProblems; return true; } if (parentType.isParameterizedType()) parentType = ((ParameterizedTypeBinding) parentType).type; hasCycle |= detectHierarchyCycle(sourceType, parentType, reference); if ((parentType.tagBits& TagBits.HierarchyHasProblems) != 0) { sourceType.tagBits |= TagBits.HierarchyHasProblems; parentType.tagBits |= TagBits.HierarchyHasProblems; // propagate down the hierarchy } |
| ||||
if (sourceType == anInterface) { problemReporter().hierarchyCircularity(sourceType, superType, reference); sourceType.tagBits |= TagBits.HierarchyHasProblems; superType.tagBits |= TagBits.HierarchyHasProblems; return true; } if (anInterface.isParameterizedType()) anInterface = ((ParameterizedTypeBinding) anInterface).type; hasCycle |= detectHierarchyCycle(sourceType, anInterface, reference); if ((anInterface.tagBits& TagBits.HierarchyHasProblems) != 0) { sourceType.tagBits |= TagBits.HierarchyHasProblems; superType.tagBits |= TagBits.HierarchyHasProblems; } |
| |||
if (sourceType == [[#variablebb134de0]]) { problemReporter().hierarchyCircularity(sourceType, superType, reference); sourceType.tagBits |= TagBits.HierarchyHasProblems; superType.tagBits |= TagBits.HierarchyHasProblems; return true; } if ( [[#variablebb134de0]].isParameterizedType()) [[#variablebb134de0]]= ((ParameterizedTypeBinding) [[#variablebb134de0]]).type; hasCycle |= detectHierarchyCycle(sourceType, [[#variablebb134de0]], reference); if (( [[#variablebb134de0]].tagBits&TagBits.HierarchyHasProblems) != 0) { sourceType.tagBits |= TagBits.HierarchyHasProblems; [[#variableb677afc0]].tagBits |= TagBits.HierarchyHasProblems; // propagate down the hierarchy } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#bb134de0]] | anInterface |
1 | 2 | [[#bb134de0]] | parentType |
2 | 1 | [[#b677afc0]] | superType |
2 | 2 | [[#b677afc0]] | parentType |