Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
17 | 2 | 2 | 0.992 | switch_groups[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 17 | 608 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TypeBinding.java |
2 | 17 | 714 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TypeBinding.java |
| ||||
case Binding.RAW_TYPE: return getTypeDeclaration().getName(); case Binding.ARRAY_TYPE: ITypeBinding elementType = getElementType(); if (elementType.isLocal() || elementType.isAnonymous() || elementType.isCapture()) { return NO_NAME; } int dimensions = getDimensions(); char[] brackets = new char[dimensions * 2]; for (int i = dimensions * 2 - 1; i >= 0; i -= 2) { brackets[i] = ']'; brackets[i - 1] = '['; } buffer = new StringBuffer(elementType.getName()); buffer.append(brackets); return String.valueOf(buffer); |
| ||||
case Binding.RAW_TYPE: return getTypeDeclaration().getQualifiedName(); case Binding.ARRAY_TYPE: ITypeBinding elementType = getElementType(); if (elementType.isLocal() || elementType.isAnonymous() || elementType.isCapture()) { return NO_NAME; } final int dimensions = getDimensions(); char[] brackets = new char[dimensions * 2]; for (int i = dimensions * 2 - 1; i >= 0; i -= 2) { brackets[i] = ']'; brackets[i - 1] = '['; } buffer = new StringBuffer(elementType.getQualifiedName()); buffer.append(brackets); return String.valueOf(buffer); |
| |||
case Binding.RAW_TYPE: return getTypeDeclaration(). [[#variableb342fdc0]](); case Binding.ARRAY_TYPE: ITypeBinding elementType = getElementType(); if (elementType.isLocal() || elementType.isAnonymous() || elementType.isCapture()) { return NO_NAME; } [[#variableb342fce0]]int dimensions = getDimensions(); char[] brackets = new char[dimensions * 2]; for (int i = dimensions * 2 - 1; i >= 0; i -= 2) { brackets[i] = ']'; brackets[i - 1] = '['; } buffer = new StringBuffer(elementType. [[#variableb342fdc0]]()); buffer.append(brackets); return String.valueOf(buffer); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b342fdc0]] | getQualifiedName |
1 | 2 | [[#b342fdc0]] | getName |
2 | 1 | [[#b342fce0]] | final |
2 | 2 | [[#b342fce0]] |