CloneSet2943


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

        /**
         * Constructs a new hash table with the given capacity and the given element
         * comparer.
         * 
         * @param capacity the maximum number of elements that can be added without
         *        rehashing
         * @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(int capacity, IElementComparer comparer) {
                if (capacity >= 0) {
                        elementCount = 0;
                        elementData = new HashMapEntry[capacity == 0 ? 1:  capacity];
                        firstSlot = elementData.length;
                        loadFactor = 0.75F;
                        computeMaxSize();
                }
                else    throw new IllegalArgumentException();
                this.comparer = comparer;
        }


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

    /**
     * Constructs a new hash table with the given capacity and the given
     * element comparer.
     * 
     * @param capacity the maximum number of elements that can be added without
     *   rehashing
     * @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(int capacity, IElementComparer comparer) {
        if (capacity >= 0) {
            elementCount = 0;
            elementData = new HashMapEntry[capacity == 0 ? 1:  capacity];
            firstSlot = elementData.length;
            loadFactor = 0.75F;
            computeMaxSize();
        }
        else throw new IllegalArgumentException();
        this.comparer = comparer;
    }


Clone AbstractionParameter Count: 0Parameter Bindings

/**
     * Constructs a new hash table with the given capacity and the given
     * element comparer.
     * 
     * @param capacity the maximum number of elements that can be added without
     *   rehashing
     * @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 the given capacity and the given element
         * comparer.
         * 
         * @param capacity the maximum number of elements that can be added without
         *        rehashing
         * @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(int capacity, IElementComparer comparer) {
  if (capacity >= 0) {
    elementCount = 0;
    elementData = new HashMapEntry[capacity == 0 ? 1: capacity];
    firstSlot = elementData.length;
    loadFactor = 0.75F;
    computeMaxSize();
  }
  else
    throw new IllegalArgumentException();
  this.comparer = comparer;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None