Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
16 | 2 | 2 | 0.991 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 16 | 292 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/MethodOverrideTester.java |
2 | 16 | 310 | 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 } |
| ||||
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 } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b4a8db40]] | getVariableSubstitution |
1 | 2 | [[#b4a8db40]] | getVariableErasure |
2 | 1 | [[#b4a8dac0]] | getSubstitution |
2 | 2 | [[#b4a8dac0]] | getErasure |