Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
22 | 3 | 6 | 0.968 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 22 | 80 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/types/ParameterizedType.java |
2 | 22 | 60 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/types/RawType.java |
3 | 23 | 51 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/types/StandardType.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; |
| ||||
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; |
| ||||
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; |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#598175a0]] | targetType |
1 | 2 | [[#598175a0]] | targetType |
1 | 3 | [[#598175a0]] | lhs.getKind() |
2 | 1 | [[#b47fed60]] | false |
2 | 2 | [[#b47fed60]] | false |
2 | 3 | [[#b47fed60]] | canAssignToPrimitive((PrimitiveType) lhs) |
3 | 1 | [[#b47fedc0]] | canAssignToParameterizedType |
3 | 2 | [[#b47fedc0]] | isSubType |
3 | 3 | [[#b47fedc0]] | isSubType |
4 | 1 | [[#598174a0]] | ParameterizedType |
4 | 2 | [[#598174a0]] | ParameterizedType |
4 | 3 | [[#598174a0]] | HierarchyType |
5 | 1 | [[#5a19a0a0]] | canAssignToRawType |
5 | 2 | [[#5a19a0a0]] | isSubType |
5 | 3 | [[#5a19a0a0]] | isSubType |
6 | 1 | [[#59817500]] | RawType |
6 | 2 | [[#59817500]] | HierarchyType |
6 | 3 | [[#59817500]] | HierarchyType |