Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 2 | 1 | 0.974 | class_body_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 15 | 48 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/util/CompoundNameVector.java |
2 | 15 | 88 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/TypeVector.java |
| ||||
public char[][] remove(char[][] element) { // assumes only one occurrence of the element exists for (int i = size; --i >= 0;) if (element == elements[i]) { // shift the remaining elements down one spot System.arraycopy(elements, i + 1, elements, i, --size - i); elements[size] = null; return element; } return null; } public void removeAll() { for (int i = size; --i >= 0;) elements[i] = null; size = 0; } |
| ||||
public IType remove(IType element) { // assumes only one occurrence of the element exists for (int i = size; --i >= 0;) if (element == elements[i]) { // shift the remaining elements down one spot System.arraycopy(elements, i + 1, elements, i, --size - i); elements[size] = null; return element; } return null; } public void removeAll() { for (int i = size; --i >= 0;) elements[i] = null; size = 0; } |
| |||
public [[#variable9a9b7740]] remove( [[#variable9a9b7740]] element) { // assumes only one occurrence of the element exists for (int i = size; --i >= 0;) if (element == elements[i]) { // shift the remaining elements down one spot System.arraycopy(elements, i + 1, elements, i, --size - i); elements[size] = null; return element; } return null; } public void removeAll() { for (int i = size; --i >= 0;) elements[i] = null; size = 0; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#9a9b7740]] | char[][] |
1 | 2 | [[#9a9b7740]] | IType |