CloneSet603


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
21220.979statement_sequence[8]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1213076
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/CharOperation.java
2213132
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/CharOperation.java
Clone Instance
1
Line Count
21
Source Line
3076
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/CharOperation.java

        int wordCount = 1;
        for (int i = 0; i < length; i++)
                if (array[i] == divider)
                        wordCount++;
        char[][] split = new char[wordCount][];
        int last = 0, currentWord = 0;
        for (int i = 0; i < length; i++) {
                if (array[i] == divider) {
                        split[currentWord] = new char[i - last];
                        System.arraycopy(
                                array, 
                                last, 
                                split[currentWord++ ], 
                                0, 
                                i - last);
                        last = i + 1;
                }
        }
        split[currentWord] = new char[length - last];
        System.arraycopy(array, last, split[currentWord], 0, length - last);
        return split;


Clone Instance
2
Line Count
21
Source Line
3132
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/CharOperation.java

        int wordCount = 1;
        for (int i = start; i < end; i++)
                if (array[i] == divider)
                        wordCount++;
        char[][] split = new char[wordCount][];
        int last = start, currentWord = 0;
        for (int i = start; i < end; i++) {
                if (array[i] == divider) {
                        split[currentWord] = new char[i - last];
                        System.arraycopy(
                                array, 
                                last, 
                                split[currentWord++ ], 
                                0, 
                                i - last);
                        last = i + 1;
                }
        }
        split[currentWord] = new char[end - last];
        System.arraycopy(array, last, split[currentWord], 0, end - last);
        return split;


Clone AbstractionParameter Count: 2Parameter Bindings

int wordCount = 1;
for (int i = [[#variableb7863720]]; i <  [[#variableb8aed4e0]]; i++)
  if (array[i] == divider)
    wordCount++;
char[][] split = new char[wordCount][];
int last = [[#variableb7863720]], currentWord = 0;
for (int i = [[#variableb7863720]]; i <  [[#variableb8aed4e0]]; i++) {
  if (array[i] == divider) {
    split[currentWord] = new char[i - last];
    System.arraycopy(array, last, split[currentWord++ ], 0, i - last);
    last = i + 1;
  }
}
split[currentWord] = new char[ [[#variableb8aed4e0]] - last];
System.arraycopy(array, last, split[currentWord], 0,  [[#variableb8aed4e0]] - last);
return split;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b7863720]]
start 
12[[#b7863720]]
0 
21[[#b8aed4e0]]
end 
22[[#b8aed4e0]]
length