CloneSet1440


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13250.955statement_sequence[7]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11395
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/constraints/SuperTypeSet.java
213109
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/constraints/SuperTypeSet.java
Clone Instance
1
Line Count
13
Source Line
95
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/constraints/SuperTypeSet.java

                                if (fType.isNullType())
                                        return this ;
                                final SuperTypeSingletonSet singleton = (SuperTypeSingletonSet) set;
                                final TType rightErasure = singleton.fType.getErasure();
                                if (leftErasure.isGenericType() || rightErasure.isGenericType()) {
                                        if (rightErasure.equals(leftErasure) || ((HierarchyType) leftErasure).isSubType((HierarchyType) rightErasure))
                                                return this ;
                                }
                                if (rightErasure.isJavaLangObject())
                                        return this ;
                                if (leftErasure.canAssignTo(rightErasure))
                                        return this ;
                                return SuperTypeSet.getEmpty();


Clone Instance
2
Line Count
13
Source Line
109
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/constraints/SuperTypeSet.java

                                if (fType.isNullType())
                                        return this ;
                                final SuperTypeTuple tuple = (SuperTypeTuple) set;
                                final TType rightErasure = tuple.fSuperType.getErasure();
                                if (leftErasure.isGenericType() || rightErasure.isGenericType()) {
                                        if (rightErasure.equals(leftErasure) || ((HierarchyType) leftErasure).isSubType((HierarchyType) rightErasure))
                                                return this ;
                                }
                                if (rightErasure.isJavaLangObject())
                                        return this ;
                                if (leftErasure.canAssignTo(rightErasure))
                                        return this ;
                                return SuperTypeSet.createTypeSet(tuple.fSubType);


Clone AbstractionParameter Count: 5Parameter Bindings

if (fType.isNullType())
  return this ;
final [[#variable50f8aec0]]  [[#variable4f047340]]= ( [[#variable50f8aec0]]) set;
final TType rightErasure = [[#variable4f047340]]. [[#variable50f8aa00]].getErasure();
if (leftErasure.isGenericType() || rightErasure.isGenericType()) {
  if (rightErasure.equals(leftErasure) || ((HierarchyType) leftErasure).isSubType((HierarchyType) rightErasure))
    return this ;
}
if (rightErasure.isJavaLangObject())
  return this ;
if (leftErasure.canAssignTo(rightErasure))
  return this ;
return SuperTypeSet. [[#variable50f8ae20]] [[#variable50f8ae60]];
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#50f8aec0]]
SuperTypeSingletonSet 
12[[#50f8aec0]]
SuperTypeTuple 
21[[#4f047340]]
singleton 
22[[#4f047340]]
tuple 
31[[#50f8aa00]]
fType 
32[[#50f8aa00]]
fSuperType 
41[[#50f8ae20]]
getEmpty 
42[[#50f8ae20]]
createTypeSet 
51[[#50f8ae60]]
() 
52[[#50f8ae60]]
(tuple.fSubType)