| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 10 | 2 | 4 | 0.962 | statement_sequence[2] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 10 | 1041 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatterOptions.java |
| 2 | 10 | 1825 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatterOptions.java |
| ||||
if (commentLineLengthOption != null) {
try {
this.comment_line_length = Integer.parseInt((String) commentLineLengthOption);
} catch (NumberFormatException e) {
this.comment_line_length = 80;
}
catch (ClassCastException e) {
this.comment_line_length = 80;
}
}
final Object indentStatementsCompareToBlockOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_INDENT_STATEMENTS_COMPARE_TO_BLOCK);
|
| ||||
if (pageWidthOption != null) {
try {
this.page_width = Integer.parseInt((String) pageWidthOption);
} catch (NumberFormatException e) {
this.page_width = 80;
}
catch (ClassCastException e) {
this.page_width = 80;
}
}
final Object useTabOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_TAB_CHAR);
|
| |||
if ( [[#variablea5309980]]!= null) {
try {
this. [[#variableb07f7700]]= Integer.parseInt((String) [[#variablea5309980]]);
}
catch (NumberFormatException e) {
this. [[#variableb07f7700]]= 80;
}
catch (ClassCastException e) {
this. [[#variableb07f7700]]= 80;
}
}
final Object [[#variableb07f7720]]= settings.get(DefaultCodeFormatterConstants. [[#variablea5308fe0]]);
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#a5309980]] | pageWidthOption |
| 1 | 2 | [[#a5309980]] | commentLineLengthOption |
| 2 | 1 | [[#b07f7700]] | page_width |
| 2 | 2 | [[#b07f7700]] | comment_line_length |
| 3 | 1 | [[#b07f7720]] | useTabOption |
| 3 | 2 | [[#b07f7720]] | indentStatementsCompareToBlockOption |
| 4 | 1 | [[#a5308fe0]] | FORMATTER_TAB_CHAR |
| 4 | 2 | [[#a5308fe0]] | FORMATTER_INDENT_STATEMENTS_COMPARE_TO_BLOCK |