CloneSet2515


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6210.989statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1632
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/SimpleWordSet.java
2647
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/SimpleWordSet.java
Clone Instance
1
Line Count
6
Source Line
32
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/SimpleWordSet.java

        int length = this.words.length;
        int index = CharOperation.hashCode(word) % length;
        char[] current;
        while ((current = words[index]) != null) {
                if (CharOperation.equals(current, word)) return current;
                if ( ++index == length)index = 0;
        }


Clone Instance
2
Line Count
6
Source Line
47
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/SimpleWordSet.java

        int length = this.words.length;
        int index = CharOperation.hashCode(word) % length;
        char[] current;
        while ((current = words[index]) != null) {
                if (CharOperation.equals(current, word)) return true;
                if ( ++index == length)index = 0;
        }


Clone AbstractionParameter Count: 1Parameter Bindings

int length = this.words.length;
int index = CharOperation.hashCode(word) % length;
char[] current;
while ((current = words[index]) != null) {
  if (CharOperation.equals(current, word))
    return [[#variable5076d2a0]];
  if ( ++index == length)
    index = 0;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5076d2a0]]
true 
12[[#5076d2a0]]
current