Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 2 | 2 | 0.961 | block |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 55 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/HashtableOfArrayToObject.java |
2 | 13 | 70 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/HashtableOfArrayToObject.java |
| ||||
{ int length = this.keyTable.length; int index = hashCode(key) % length; int keyLength = key.length; Object[] currentKey; while ((currentKey = this.keyTable[index]) != null) { if (currentKey.length == keyLength && Util.equalArraysOrNull(currentKey, key)) return true; if ( ++index == length) { index = 0; } } return false; } |
| ||||
{ int length = this.keyTable.length; int index = hashCode(key) % length; int keyLength = key.length; Object[] currentKey; while ((currentKey = this.keyTable[index]) != null) { if (currentKey.length == keyLength && Util.equalArraysOrNull(currentKey, key)) return this.valueTable[index]; if ( ++index == length) { index = 0; } } return null; } |
| |||
{ int length = this.keyTable.length; int index = hashCode(key) % length; int keyLength = key.length; Object[] currentKey; while ((currentKey = this.keyTable[index]) != null) { if (currentKey.length == keyLength && Util.equalArraysOrNull(currentKey, key)) return [[#variable990f03c0]]; if ( ++index == length) { index = 0; } } return [[#variable990f08c0]]; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#990f03c0]] | true |
1 | 2 | [[#990f03c0]] | this.valueTable[index] |
2 | 1 | [[#990f08c0]] | false |
2 | 2 | [[#990f08c0]] | null |