CloneSet1995


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9230.982class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19398
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ChangeTypeRefactoring.java
29634
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/FullConstraintCreator.java
Clone Instance
1
Line Count
9
Source Line
398
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ChangeTypeRefactoring.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;
        }


Clone Instance
2
Line Count
9
Source Line
634
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/FullConstraintCreator.java

        /* 
         * 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;
        }


Clone AbstractionParameter Count: 3Parameter Bindings

/* 
         * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#54d96320]]
IVariableBinding 
12[[#54d96320]]
IMethodBinding 
21[[#54d962c0]]
fieldBinding 
22[[#54d962c0]]
methodBinding 
31[[#54d96220]]
findField 
32[[#54d96220]]
findMethod