CloneSet1655


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13220.961block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11355
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/HashtableOfArrayToObject.java
21370
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/HashtableOfArrayToObject.java
Clone Instance
1
Line Count
13
Source Line
55
Source File
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;
                                                 }


Clone Instance
2
Line Count
13
Source Line
70
Source File
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 this.valueTable[index];
                        if ( ++index == length) {
                                index = 0;
                        }
                }
                return null;
                                        }


Clone AbstractionParameter Count: 2Parameter Bindings

{
  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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#990f03c0]]
true 
12[[#990f03c0]]
this.valueTable[index] 
21[[#990f08c0]]
false 
22[[#990f08c0]]
null