Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 2 | 2 | 0.984 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 266 | plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/util/TypesUtil.java |
2 | 6 | 274 | plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/util/TypesUtil.java |
| ||||
/** * @return true iff t2 = t1 does not require explicit casting and not cause an error. */ public boolean isAssignable(TypeMirror t1, TypeMirror t2) { EclipseMirrorType left = (EclipseMirrorType) t1; EclipseMirrorType right = (EclipseMirrorType) t2; return left.isAssignmentCompatible(right); } |
| ||||
public boolean isSubtype(TypeMirror t1, TypeMirror t2) { EclipseMirrorType left = (EclipseMirrorType) t1; EclipseMirrorType right = (EclipseMirrorType) t2; return left.isSubTypeCompatible(right); } |
| |||
/** * @return true iff t2 = t1 does not require explicit casting and not cause an error. */ public boolean [[#variable900dfd80]](TypeMirror t1, TypeMirror t2) { EclipseMirrorType left = (EclipseMirrorType) t1; EclipseMirrorType right = (EclipseMirrorType) t2; return left. [[#variable900dfd00]](right); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#900dfd80]] | isAssignable |
1 | 2 | [[#900dfd80]] | isSubtype |
2 | 1 | [[#900dfd00]] | isAssignmentCompatible |
2 | 2 | [[#900dfd00]] | isSubTypeCompatible |