CloneSet1649


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12210.997class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112316
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/util/JUnitStubUtility.java
212264
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/StubUtility.java
Clone Instance
1
Line Count
12
Source Line
316
Source File
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/util/JUnitStubUtility.java

        private static String[] getParameterTypeNamesForSeeTag(IMethodBinding binding) {
                ITypeBinding[] typeBindings = binding.getParameterTypes();
                String[] result = new String[typeBindings.length];
                for (int i = 0; i < result.length; i++) {
                        ITypeBinding curr = typeBindings[i];
                        if (curr.isTypeVariable()) {
                                curr = curr.getErasure(); // in Javadoc only use type variable erasure
                        }
                        curr = curr.getTypeDeclaration(); // no parameterized types
                        result[i] = curr.getQualifiedName();
                }
                return result;
        }


Clone Instance
2
Line Count
12
Source Line
264
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/StubUtility.java

        /*
         * Returns the parameters type names used in see tags. Currently, these are always fully qualified.
         */
        public static String[] getParameterTypeNamesForSeeTag(IMethodBinding binding) {
                ITypeBinding[] typeBindings = binding.getParameterTypes();
                String[] result = new String[typeBindings.length];
                for (int i = 0; i < result.length; i++) {
                        ITypeBinding curr = typeBindings[i];
                        if (curr.isTypeVariable()) {
                                curr = curr.getErasure(); // in Javadoc only use type variable erasure
                        }
                        curr = curr.getTypeDeclaration(); // no parameterized types
                        result[i] = curr.getQualifiedName();
                }
                return result;
        }


Clone AbstractionParameter Count: 1Parameter Bindings

 [[#variablec20b5da0]]static String[] getParameterTypeNamesForSeeTag(IMethodBinding binding) {
  ITypeBinding[] typeBindings = binding.getParameterTypes();
  String[] result = new String[typeBindings.length];
  for (int i = 0; i < result.length; i++) {
    ITypeBinding curr = typeBindings[i];
    if (curr.isTypeVariable()) {
      curr = curr.getErasure(); // in Javadoc only use type variable erasure
    }
    curr = curr.getTypeDeclaration(); // no parameterized types
    result[i] = curr.getQualifiedName();
  }
  return result;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#c20b5da0]]
private 
12[[#c20b5da0]]
/*
 * Returns the parameters type names used in see tags. Currently, these are always fully qualified.
 */
public