Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
30 | 2 | 0 | 1.000 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 31 | 72 | plugins/org.eclipse.jdt.junit.runtime/src/org/eclipse/jdt/internal/junit/runner/CustomHashtable.java |
2 | 30 | 56 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/CustomHashtable.java |
| ||||
private class HashEnumerator implements Enumeration { boolean key; int start; HashMapEntry entry; HashEnumerator(boolean isKey) { key = isKey; start = firstSlot; } public boolean hasMoreElements() { if (entry != null) return true; while (start <= lastSlot) if (elementData[start++ ] != null) { entry = elementData[start - 1]; return true; } return false; } public Object nextElement() { if (hasMoreElements()) { Object result = key ? entry.key: entry.value; entry = entry.next; return result; } else throw new NoSuchElementException(); } } |
| ||||
private class HashEnumerator implements Enumeration { boolean key; int start; HashMapEntry entry; HashEnumerator(boolean isKey) { key = isKey; start = firstSlot; } public boolean hasMoreElements() { if (entry != null) return true; while (start <= lastSlot) if (elementData[start++ ] != null) { entry = elementData[start - 1]; return true; } return false; } public Object nextElement() { if (hasMoreElements()) { Object result = key ? entry.key: entry.value; entry = entry.next; return result; } else throw new NoSuchElementException(); } } |
| |||
private class HashEnumerator implements Enumeration { boolean key; int start; HashMapEntry entry; HashEnumerator(boolean isKey) { key = isKey; start = firstSlot; } public boolean hasMoreElements() { if (entry != null) return true; while (start <= lastSlot) if (elementData[start++ ] != null) { entry = elementData[start - 1]; return true; } return false; } public Object nextElement() { if (hasMoreElements()) { Object result = key ? entry.key: entry.value; entry = entry.next; return result; } else throw new NoSuchElementException(); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |