Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 3 | 0.982 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 398 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ChangeTypeRefactoring.java |
2 | 9 | 634 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/FullConstraintCreator.java |
| ||||
// copied from FullConstraintCreator private static Set getDeclaringSuperTypes(IMethodBinding methodBinding) { ITypeBinding[] allSuperTypes = Bindings.getAllSuperTypes(methodBinding.getDeclaringClass()); Set result = new HashSet(); for (int i = 0; i < allSuperTypes.length; i++) { ITypeBinding type = allSuperTypes[i]; if (findMethod(methodBinding, type) != null) result.add(type); } return result; } |
| ||||
/* * return Set of ITypeBindings */ private static Set getDeclaringSuperTypes(IVariableBinding fieldBinding) { ITypeBinding[] allSuperTypes = Bindings.getAllSuperTypes(fieldBinding.getDeclaringClass()); Set result = new HashSet(); for (int i = 0; i < allSuperTypes.length; i++) { ITypeBinding type = allSuperTypes[i]; if (findField(fieldBinding, type) != null) result.add(type); } return result; } |
| |||
/* * return Set of ITypeBindings */ // copied from FullConstraintCreator private static Set getDeclaringSuperTypes( [[#variable54d96320]] [[#variable54d962c0]]) { ITypeBinding[] allSuperTypes = Bindings.getAllSuperTypes( [[#variable54d962c0]].getDeclaringClass()); Set result = new HashSet(); for (int i = 0; i < allSuperTypes.length; i++) { ITypeBinding type = allSuperTypes[i]; if ( [[#variable54d96220]]( [[#variable54d962c0]], type) != null) result.add(type); } return result; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#54d96320]] | IVariableBinding |
1 | 2 | [[#54d96320]] | IMethodBinding |
2 | 1 | [[#54d962c0]] | fieldBinding |
2 | 2 | [[#54d962c0]] | methodBinding |
3 | 1 | [[#54d96220]] | findField |
3 | 2 | [[#54d96220]] | findMethod |