| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 12 | 2 | 3 | 0.953 | switch_group |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 12 | 109 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java |
| 2 | 12 | 104 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaParameterListValidator.java |
| ||||
case '/':
if (startOffset < endOffset) {
char next = d.getChar(startOffset);
if (next == '*') {
// a comment starts, advance to the comment end
startOffset = getCommentEnd(d, startOffset + 1, endOffset);
}
else if (next == '/') {
// '//'-comment: nothing to do anymore on this line
startOffset = endOffset;
}
}
break;
|
| ||||
case '/':
if (offset < end) {
char next = document.getChar(offset);
if (next == '*') {
// a comment starts, advance to the comment end
offset = getCommentEnd(document, offset + 1, end);
}
else if (next == '/') {
// '//'-comment: nothing to do anymore on this line
offset = end;
}
}
break;
|
| |||
case '/':
if ( [[#variablea3fe8ac0]] < [[#variablea3fe8a40]]) {
char next = [[#variablea3fe89c0]].getChar( [[#variablea3fe8ac0]]);
if (next == '*') {
[[#variablea3fe8ac0]]= getCommentEnd( [[#variablea3fe89c0]], [[#variablea3fe8ac0]] + 1, [[#variablea3fe8a40]]);
}
else
if (next == '/') {
[[#variablea3fe8ac0]]= [[#variablea3fe8a40]];
}
}
break;
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#a3fe8ac0]] | startOffset |
| 1 | 2 | [[#a3fe8ac0]] | offset |
| 2 | 1 | [[#a3fe8a40]] | endOffset |
| 2 | 2 | [[#a3fe8a40]] | end |
| 3 | 1 | [[#a3fe89c0]] | d |
| 3 | 2 | [[#a3fe89c0]] | document |