CloneSet1139


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

        private class HashEnumerator implements Enumeration {

                boolean key;

                int start;

                HashMapEntry entry;

                HashEnumerator(boolean isKey) {
                        key = isKey;
                        start = firstSlot;
                }

                public boolean hasMoreElements() {
                        if (entry != null)
                                return true;
                        while (start <= lastSlot)
                                if (elementData[start++ ] != null) {
                                        entry = elementData[start - 1];
                                        return true;
                                }
                        return false;
                }

                public Object nextElement() {
                        if (hasMoreElements()) {
                                Object result = key ? entry.key:  entry.value;
                                entry = entry.next;
                                return result;
                        }
                        else    throw new NoSuchElementException();
                }
        }


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

    private class HashEnumerator implements Enumeration {
        boolean key;

        int start;

        HashMapEntry entry;

        HashEnumerator(boolean isKey) {
            key = isKey;
            start = firstSlot;
        }

        public boolean hasMoreElements() {
            if (entry != null)
                return true;
            while (start <= lastSlot)
                if (elementData[start++ ] != null) {
                    entry = elementData[start - 1];
                    return true;
                }
            return false;
        }

        public Object nextElement() {
            if (hasMoreElements()) {
                Object result = key ? entry.key:  entry.value;
                entry = entry.next;
                return result;
            }
            else throw new NoSuchElementException();
        }
    }


Clone AbstractionParameter Count: 0Parameter Bindings

private class HashEnumerator implements Enumeration {
  boolean key;

  int start;

  HashMapEntry entry;

  HashEnumerator(boolean isKey) {
    key = isKey;
    start = firstSlot;
  }

  public boolean hasMoreElements() {
    if (entry != null)
      return true;
    while (start <= lastSlot)
      if (elementData[start++ ] != null) {
        entry = elementData[start - 1];
        return true;
      }
    return false;
  }

  public Object nextElement() {
    if (hasMoreElements()) {
      Object result = key ? entry.key: entry.value;
      entry = entry.next;
      return result;
    }
    else
      throw new NoSuchElementException();
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None