CloneSet1572


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16220.991class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
116292
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/MethodOverrideTester.java
216310
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/MethodOverrideTester.java
Clone Instance
1
Line Count
16
Source Line
292
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/MethodOverrideTester.java

        private String getVariableSubstitution(IMember context, String variableName) throws JavaModelException {
                IType type;
                if (context instanceof IMethod) {
                        String subst = getMethodSubstitions((IMethod) context).getSubstitution(variableName);
                        if (subst != null) {
                                return subst;
                        }
                        type = context.getDeclaringType();
                }
                else   {
                        type = (IType) context;
                }
                String subst = getTypeSubstitions(type).getSubstitution(variableName);
                if (subst != null) {
                        return subst;
                }
                return variableName; // not a type variable
        }


Clone Instance
2
Line Count
16
Source Line
310
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/MethodOverrideTester.java

        private String getVariableErasure(IMember context, String variableName) throws JavaModelException {
                IType type;
                if (context instanceof IMethod) {
                        String subst = getMethodSubstitions((IMethod) context).getErasure(variableName);
                        if (subst != null) {
                                return subst;
                        }
                        type = context.getDeclaringType();
                }
                else   {
                        type = (IType) context;
                }
                String subst = getTypeSubstitions(type).getErasure(variableName);
                if (subst != null) {
                        return subst;
                }
                return variableName; // not a type variable
        }


Clone AbstractionParameter Count: 2Parameter Bindings

private String  [[#variableb4a8db40]](IMember context, String variableName) throws JavaModelException {
  IType type;
  if (context instanceof IMethod) {
    String subst = getMethodSubstitions((IMethod) context). [[#variableb4a8dac0]](variableName);
    if (subst != null) {
      return subst;
    }
    type = context.getDeclaringType();
  }
  else {
    type = (IType) context;
  }
  String subst = getTypeSubstitions(type). [[#variableb4a8dac0]](variableName);
  if (subst != null) {
    return subst;
  }
  return variableName; // not a type variable
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b4a8db40]]
getVariableSubstitution 
12[[#b4a8db40]]
getVariableErasure 
21[[#b4a8dac0]]
getSubstitution 
22[[#b4a8dac0]]
getErasure