CloneSet1442


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12220.980statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1121047
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ClassScope.java
2121066
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ClassScope.java
Clone Instance
1
Line Count
12
Source Line
1047
Source File
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
                                }


Clone Instance
2
Line Count
12
Source Line
1066
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ClassScope.java

                                        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;
                                        }


Clone AbstractionParameter Count: 2Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#bb134de0]]
anInterface 
12[[#bb134de0]]
parentType 
21[[#b677afc0]]
superType 
22[[#b677afc0]]
parentType