Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 2 | 5 | 0.955 | statement_sequence[7] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 95 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/constraints/SuperTypeSet.java |
2 | 13 | 109 | 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(); |
| ||||
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); |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#50f8aec0]] | SuperTypeSingletonSet |
1 | 2 | [[#50f8aec0]] | SuperTypeTuple |
2 | 1 | [[#4f047340]] | singleton |
2 | 2 | [[#4f047340]] | tuple |
3 | 1 | [[#50f8aa00]] | fType |
3 | 2 | [[#50f8aa00]] | fSuperType |
4 | 1 | [[#50f8ae20]] | getEmpty |
4 | 2 | [[#50f8ae20]] | createTypeSet |
5 | 1 | [[#50f8ae60]] | () |
5 | 2 | [[#50f8ae60]] | (tuple.fSubType) |