CloneSet396


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
22360.968statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12280
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/types/ParameterizedType.java
22260
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/types/RawType.java
32351
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/types/StandardType.java
Clone Instance
1
Line Count
22
Source Line
80
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/types/ParameterizedType.java

                switch (targetType) {
                        case NULL_TYPE: return false;
                        case VOID_TYPE: return false;
                        case PRIMITIVE_TYPE: return false;

                        case ARRAY_TYPE: return false;

                        case STANDARD_TYPE: return canAssignToStandardType((StandardType) lhs);
                        case GENERIC_TYPE: return false;
                        case PARAMETERIZED_TYPE: return canAssignToParameterizedType((ParameterizedType) lhs);
                        case RAW_TYPE: return canAssignToRawType((RawType) lhs);

                        case UNBOUND_WILDCARD_TYPE:
                        case SUPER_WILDCARD_TYPE:
                        case EXTENDS_WILDCARD_TYPE:
                                return ((WildcardType) lhs).checkAssignmentBound(this );

                        case TYPE_VARIABLE: return false;
                        case CAPTURE_TYPE:
                                return ((CaptureType) lhs).checkLowerBound(this );
                      }
                return false;


Clone Instance
2
Line Count
22
Source Line
60
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/types/RawType.java

                switch (targetType) {
                        case NULL_TYPE: return false;
                        case VOID_TYPE: return false;
                        case PRIMITIVE_TYPE: return false;

                        case ARRAY_TYPE: return false;

                        case STANDARD_TYPE: return canAssignToStandardType((StandardType) lhs);
                        case GENERIC_TYPE: return false;
                        case PARAMETERIZED_TYPE: return isSubType((ParameterizedType) lhs);
                        case RAW_TYPE: return isSubType((HierarchyType) lhs);

                        case UNBOUND_WILDCARD_TYPE:
                        case SUPER_WILDCARD_TYPE:
                        case EXTENDS_WILDCARD_TYPE:
                                return ((WildcardType) lhs).checkAssignmentBound(this );

                        case TYPE_VARIABLE: return false;
                        case CAPTURE_TYPE:
                                return ((CaptureType) lhs).checkLowerBound(this );
                      }
                return false;


Clone Instance
3
Line Count
23
Source Line
51
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/types/StandardType.java

                switch (lhs.getKind()) {
                        case NULL_TYPE: return false;
                        case VOID_TYPE: return false;
                        case PRIMITIVE_TYPE: return canAssignToPrimitive((PrimitiveType) lhs);

                        case ARRAY_TYPE: return false;

                        case STANDARD_TYPE: return canAssignToStandardType((StandardType) lhs);
                        case GENERIC_TYPE: return false;
                        case PARAMETERIZED_TYPE: return isSubType((HierarchyType) lhs);
                        case RAW_TYPE: return isSubType((HierarchyType) lhs);

                        case UNBOUND_WILDCARD_TYPE:
                        case SUPER_WILDCARD_TYPE:
                        case EXTENDS_WILDCARD_TYPE:
                                return ((WildcardType) lhs).checkAssignmentBound(this );

                        case TYPE_VARIABLE: return false;

                        case CAPTURE_TYPE:
                                return ((CaptureType) lhs).checkLowerBound(this );
                      }
                return false;


Clone AbstractionParameter Count: 6Parameter Bindings

switch ( [[#variable598175a0]]) {
  case NULL_TYPE:
    return false;
  case VOID_TYPE:
    return false;
  case PRIMITIVE_TYPE:
    return [[#variableb47fed60]];
  case ARRAY_TYPE:
    return false;
  case STANDARD_TYPE:
    return canAssignToStandardType((StandardType) lhs);
  case GENERIC_TYPE:
    return false;
  case PARAMETERIZED_TYPE:
    return [[#variableb47fedc0]](( [[#variable598174a0]]) lhs);
  case RAW_TYPE:
    return [[#variable5a19a0a0]](( [[#variable59817500]]) lhs);
  case UNBOUND_WILDCARD_TYPE:
  case SUPER_WILDCARD_TYPE:
  case EXTENDS_WILDCARD_TYPE:
    return ((WildcardType) lhs).checkAssignmentBound(this );
  case TYPE_VARIABLE:
    return false;
  case CAPTURE_TYPE:
    return ((CaptureType) lhs).checkLowerBound(this );
}
return false;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#598175a0]]
targetType 
12[[#598175a0]]
targetType 
13[[#598175a0]]
lhs.getKind() 
21[[#b47fed60]]
false 
22[[#b47fed60]]
false 
23[[#b47fed60]]
canAssignToPrimitive((PrimitiveType) lhs) 
31[[#b47fedc0]]
canAssignToParameterizedType 
32[[#b47fedc0]]
isSubType 
33[[#b47fedc0]]
isSubType 
41[[#598174a0]]
ParameterizedType 
42[[#598174a0]]
ParameterizedType 
43[[#598174a0]]
HierarchyType 
51[[#5a19a0a0]]
canAssignToRawType 
52[[#5a19a0a0]]
isSubType 
53[[#5a19a0a0]]
isSubType 
61[[#59817500]]
RawType 
62[[#59817500]]
HierarchyType 
63[[#59817500]]
HierarchyType