CloneSet1806


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9210.993class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19150
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CharArrayCache.java
29120
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/ObjectCache.java
Clone Instance
1
Line Count
9
Source Line
150
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CharArrayCache.java

/**
 * Rehashes the content of the table into a bigger table.
 * This method is called automatically when the hashtable's
 * size exceeds the threshold.
 */
private void rehash() {
        CharArrayCache newHashtable = new CharArrayCache(this.keyTable.length * 2);
        for (int i = this.keyTable.length; --i >= 0;)
                if (this.keyTable[i] != null)
                        newHashtable.put(this.keyTable[i], this.valueTable[i]);

        this.keyTable = newHashtable.keyTable;
        this.valueTable = newHashtable.valueTable;
        this.threshold = newHashtable.threshold;
}


Clone Instance
2
Line Count
9
Source Line
120
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/ObjectCache.java

/**
 * Rehashes the content of the table into a bigger table.
 * This method is called automatically when the hashtable's
 * size exceeds the threshold.
 */
private void rehash() {
        ObjectCache newHashtable = new ObjectCache(this.keyTable.length * 2);
        for (int i = this.keyTable.length; --i >= 0;)
                if (this.keyTable[i] != null)
                        newHashtable.put(this.keyTable[i], this.valueTable[i]);

        this.keyTable = newHashtable.keyTable;
        this.valueTable = newHashtable.valueTable;
        this.threshold = newHashtable.threshold;
}


Clone AbstractionParameter Count: 1Parameter Bindings

/**
 * Rehashes the content of the table into a bigger table.
 * This method is called automatically when the hashtable's
 * size exceeds the threshold.
 */
private void rehash() {
   [[#variable99006880]] newHashtable = new [[#variable99006880]](this.keyTable.length * 2);
  for (int i = this.keyTable.length; --i >= 0;)
    if (this.keyTable[i] != null)
      newHashtable.put(this.keyTable[i], this.valueTable[i]);
  this.keyTable = newHashtable.keyTable;
  this.valueTable = newHashtable.valueTable;
  this.threshold = newHashtable.threshold;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#99006880]]
ObjectCache 
12[[#99006880]]
CharArrayCache