CloneSet2393


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7201.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17188
plugins/org.eclipse.jdt.junit.runtime/src/org/eclipse/jdt/internal/junit/runner/CustomHashtable.java
27172
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/CustomHashtable.java
Clone Instance
1
Line Count
7
Source Line
188
Source File
plugins/org.eclipse.jdt.junit.runtime/src/org/eclipse/jdt/internal/junit/runner/CustomHashtable.java

        /**
         * Constructs a new hash table with enough capacity to hold all keys in the
         * given hash table, then adds all key/value pairs in the given hash table
         * to the new one, using the given element comparer.
         * 
         * @param table the original hash table
         * @param comparer the element comparer to use to compare keys and obtain
         *        hash codes for keys, or <code>null</code> to use the normal
         *        <code>equals</code> and <code>hashCode</code> methods
         */
        public CustomHashtable(CustomHashtable table, IElementComparer comparer) {
                this(table.size() * 2, comparer);
                for (int i = table.elementData.length; --i >= 0;) {
                        HashMapEntry entry = table.elementData[i];
                        while (entry != null) {
                                put(entry.key, entry.value);
                                entry = entry.next;
                        }
                }
        }


Clone Instance
2
Line Count
7
Source Line
172
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/CustomHashtable.java

    /**
     * Constructs a new hash table with enough capacity to hold all keys in the
     * given hash table, then adds all key/value pairs in the given hash table
     * to the new one, using the given element comparer.
     * 
     * @param table the hash table to add from
     * @param comparer the element comparer to use to compare keys and obtain
     *   hash codes for keys, or <code>null</code>  to use the normal 
     *   <code>equals</code> and <code>hashCode</code> methods
     */
    public CustomHashtable(CustomHashtable table, IElementComparer comparer) {
        this(table.size() * 2, comparer);
        for (int i = table.elementData.length; --i >= 0;) {
            HashMapEntry entry = table.elementData[i];
            while (entry != null) {
                put(entry.key, entry.value);
                entry = entry.next;
            }
        }
    }


Clone AbstractionParameter Count: 0Parameter Bindings

/**
     * Constructs a new hash table with enough capacity to hold all keys in the
     * given hash table, then adds all key/value pairs in the given hash table
     * to the new one, using the given element comparer.
     * 
     * @param table the hash table to add from
     * @param comparer the element comparer to use to compare keys and obtain
     *   hash codes for keys, or <code>null</code>  to use the normal 
     *   <code>equals</code> and <code>hashCode</code> methods
     */
/**
         * Constructs a new hash table with enough capacity to hold all keys in the
         * given hash table, then adds all key/value pairs in the given hash table
         * to the new one, using the given element comparer.
         * 
         * @param table the original hash table
         * @param comparer the element comparer to use to compare keys and obtain
         *        hash codes for keys, or <code>null</code> to use the normal
         *        <code>equals</code> and <code>hashCode</code> methods
         */
public CustomHashtable(CustomHashtable table, IElementComparer comparer) {
  this(table.size() * 2, comparer);
  for (int i = table.elementData.length; --i >= 0;) {
    HashMapEntry entry = table.elementData[i];
    while (entry != null) {
      put(entry.key, entry.value);
      entry = entry.next;
    }
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None