Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 2 | 1 | 0.997 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 316 | plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/util/JUnitStubUtility.java |
2 | 12 | 264 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/StubUtility.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; } |
| ||||
/* * 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; } |
| |||
[[#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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#c20b5da0]] | private |
1 | 2 | [[#c20b5da0]] | /* * Returns the parameters type names used in see tags. Currently, these are always fully qualified. */ public |