| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 25 | 2 | 0 | 1.000 | statement_sequence[3] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 25 | 7977 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java |
| 2 | 25 | 184 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/CommentRecorderParser.java |
| ||||
switch (validCount) {
case 0:
// do nothing
break;
// move valid comment infos, overriding obsolete comment infos
case 2:
this.scanner.commentStarts[0] = this.scanner.commentStarts[index + 1];
this.scanner.commentStops[0] = this.scanner.commentStops[index + 1];
this.scanner.commentTagStarts[0] = this.scanner.commentTagStarts[index + 1];
this.scanner.commentStarts[1] = this.scanner.commentStarts[index + 2];
this.scanner.commentStops[1] = this.scanner.commentStops[index + 2];
this.scanner.commentTagStarts[1] = this.scanner.commentTagStarts[index + 2];
break;
case 1:
this.scanner.commentStarts[0] = this.scanner.commentStarts[index + 1];
this.scanner.commentStops[0] = this.scanner.commentStops[index + 1];
this.scanner.commentTagStarts[0] = this.scanner.commentTagStarts[index + 1];
break;
default:
System.arraycopy(this.scanner.commentStarts, index + 1, this.scanner.commentStarts, 0, validCount);
System.arraycopy(this.scanner.commentStops, index + 1, this.scanner.commentStops, 0, validCount);
System.arraycopy(this.scanner.commentTagStarts, index + 1, this.scanner.commentTagStarts, 0, validCount);
}
this.scanner.commentPtr = validCount - 1;
return position;
|
| ||||
switch (validCount) {
case 0:
// do nothing
break;
// move valid comment infos, overriding obsolete comment infos
case 2:
this.scanner.commentStarts[0] = this.scanner.commentStarts[index + 1];
this.scanner.commentStops[0] = this.scanner.commentStops[index + 1];
this.scanner.commentTagStarts[0] = this.scanner.commentTagStarts[index + 1];
this.scanner.commentStarts[1] = this.scanner.commentStarts[index + 2];
this.scanner.commentStops[1] = this.scanner.commentStops[index + 2];
this.scanner.commentTagStarts[1] = this.scanner.commentTagStarts[index + 2];
break;
case 1:
this.scanner.commentStarts[0] = this.scanner.commentStarts[index + 1];
this.scanner.commentStops[0] = this.scanner.commentStops[index + 1];
this.scanner.commentTagStarts[0] = this.scanner.commentTagStarts[index + 1];
break;
default:
System.arraycopy(this.scanner.commentStarts, index + 1, this.scanner.commentStarts, 0, validCount);
System.arraycopy(this.scanner.commentStops, index + 1, this.scanner.commentStops, 0, validCount);
System.arraycopy(this.scanner.commentTagStarts, index + 1, this.scanner.commentTagStarts, 0, validCount);
}
this.scanner.commentPtr = validCount - 1;
return position;
|
| |||
switch (validCount) {
case 0:
// do nothing
break;
// move valid comment infos, overriding obsolete comment infos
case 2:
this.scanner.commentStarts[0] = this.scanner.commentStarts[index + 1];
this.scanner.commentStops[0] = this.scanner.commentStops[index + 1];
this.scanner.commentTagStarts[0] = this.scanner.commentTagStarts[index + 1];
this.scanner.commentStarts[1] = this.scanner.commentStarts[index + 2];
this.scanner.commentStops[1] = this.scanner.commentStops[index + 2];
this.scanner.commentTagStarts[1] = this.scanner.commentTagStarts[index + 2];
break;
case 1:
this.scanner.commentStarts[0] = this.scanner.commentStarts[index + 1];
this.scanner.commentStops[0] = this.scanner.commentStops[index + 1];
this.scanner.commentTagStarts[0] = this.scanner.commentTagStarts[index + 1];
break;
default:
System.arraycopy(this.scanner.commentStarts, index + 1, this.scanner.commentStarts, 0, validCount);
System.arraycopy(this.scanner.commentStops, index + 1, this.scanner.commentStops, 0, validCount);
System.arraycopy(this.scanner.commentTagStarts, index + 1, this.scanner.commentTagStarts, 0, validCount);
}
this.scanner.commentPtr = validCount - 1;
return position;
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| None | |||