Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 2 | 0.960 | block |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 55 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/util/SimpleLookupTable.java |
2 | 9 | 66 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/util/SimpleLookupTable.java |
| ||||
{ int length = keyTable.length; int index = (key.hashCode()& 0x7fffffff) % length; Object currentKey; while ((currentKey = keyTable[index]) != null) { if (currentKey.equals(key)) return true; if ( ++index == length)index = 0; } return false; } |
| ||||
{ int length = keyTable.length; int index = (key.hashCode()& 0x7fffffff) % length; Object currentKey; while ((currentKey = keyTable[index]) != null) { if (currentKey.equals(key)) return valueTable[index]; if ( ++index == length)index = 0; } return null; } |
| |||
{ int length = keyTable.length; int index = (key.hashCode()&0x7fffffff) % length; Object currentKey; while ((currentKey = keyTable[index]) != null) { if (currentKey.equals(key)) return [[#variablea5c41ee0]]; if ( ++index == length) index = 0; } return [[#variablea5c41e40]]; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#a5c41ee0]] | true |
1 | 2 | [[#a5c41ee0]] | valueTable[index] |
2 | 1 | [[#a5c41e40]] | false |
2 | 2 | [[#a5c41e40]] | null |