| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 17 | 2 | 2 | 0.979 | block |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 17 | 499 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/comment/CommentRegion.java |
| 2 | 17 | 181 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/comment/CommentFormattingStrategy.java |
| ||||
{
StringBuffer expanded = new StringBuffer();
for (int i = 0,n = string.length(),chars = 0; i < n; i++) {
char ch = string.charAt(i);
if (ch == '\t') {
for (; chars < fTabSize; chars++)
expanded.append(' ');
chars = 0;
}
else {
expanded.append(ch);
chars++;
if (chars >= fTabSize)
chars = 0;
}
}
return expanded.toString();
}
|
| ||||
{
StringBuffer expanded = new StringBuffer();
for (int i = 0,n = string.length(),chars = 0; i < n; i++) {
char ch = string.charAt(i);
if (ch == '\t') {
for (; chars < tabSize; chars++)
expanded.append(' ');
chars = 0;
}
else {
expanded.append(ch);
chars++;
if (chars >= tabSize)
chars = 0;
}
}
return expanded;
}
|
| |||
{
StringBuffer expanded = new StringBuffer();
for (int i = 0, n = string.length(), chars = 0; i < n; i++) {
char ch = string.charAt(i);
if (ch == '\t') {
for (; chars < [[#variableb204c700]]; chars++)
expanded.append(' ');
chars = 0;
}
else {
expanded.append(ch);
chars++;
if (chars >= [[#variableb204c700]])
chars = 0;
}
}
return [[#variableb1dff8c0]];
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#b204c700]] | fTabSize |
| 1 | 2 | [[#b204c700]] | tabSize |
| 2 | 1 | [[#b1dff8c0]] | expanded.toString() |
| 2 | 2 | [[#b1dff8c0]] | expanded |