CloneSet1211


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10330.960class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110106
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/util/SimpleSet.java
21049
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/QualifiedNameSet.java
31057
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/SimpleWordSet.java
Clone Instance
1
Line Count
10
Source Line
106
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/util/SimpleSet.java

private void rehash() {
        SimpleSet newSet = new SimpleSet(elementSize * 2); // double the number of expected elements
        Object current;
        for (int i = values.length; --i >= 0;)
                if ((current = values[i]) != null)
                        newSet.add(current);

        this.values = newSet.values;
        this.elementSize = newSet.elementSize;
        this.threshold = newSet.threshold;
}


Clone Instance
2
Line Count
10
Source Line
49
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/QualifiedNameSet.java

private void rehash() {
        QualifiedNameSet newSet = new QualifiedNameSet(elementSize * 2); // double the number of expected elements
        char[][] current;
        for (int i = qualifiedNames.length; --i >= 0;)
                if ((current = qualifiedNames[i]) != null)
                        newSet.add(current);

        this.qualifiedNames = newSet.qualifiedNames;
        this.elementSize = newSet.elementSize;
        this.threshold = newSet.threshold;
}


Clone Instance
3
Line Count
10
Source Line
57
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/SimpleWordSet.java

private void rehash() {
        SimpleWordSet newSet = new SimpleWordSet(elementSize * 2); // double the number of expected elements
        char[] current;
        for (int i = words.length; --i >= 0;)
                if ((current = words[i]) != null)
                        newSet.add(current);

        this.words = newSet.words;
        this.elementSize = newSet.elementSize;
        this.threshold = newSet.threshold;
}


Clone AbstractionParameter Count: 3Parameter Bindings

private void rehash() {
   [[#variableb9bb0ee0]] newSet = new [[#variableb9bb0ee0]](elementSize * 2); // double the number of expected elements
   [[#variableb9bb0900]] current;
  for (int i = [[#variableb9bb0e60]].length; --i >= 0;)
    if ((current = [[#variableb9bb0e60]][i]) != null)
      newSet.add(current);
  this. [[#variableb9bb0e60]]= newSet. [[#variableb9bb0e60]];
  this.elementSize = newSet.elementSize;
  this.threshold = newSet.threshold;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b9bb0ee0]]
SimpleWordSet 
12[[#b9bb0ee0]]
QualifiedNameSet 
13[[#b9bb0ee0]]
SimpleSet 
21[[#b9bb0900]]
char[] 
22[[#b9bb0900]]
char[][] 
23[[#b9bb0900]]
Object 
31[[#b9bb0e60]]
words 
32[[#b9bb0e60]]
qualifiedNames 
33[[#b9bb0e60]]
values