Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 2 | 6 | 0.981 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 1654 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor2.java |
2 | 12 | 2327 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor2.java |
| ||||
for (int i = 0; i < argumentsLength; i++) { if (i > 0) { this.scribe.printNextToken(TerminalTokens.TokenNameCOMMA, this.preferences.insert_space_before_comma_in_enum_constant_arguments); this.scribe.printTrailingComment(); } this.scribe.alignFragment(argumentsAlignment, i); if (i > 0 && this.preferences.insert_space_after_comma_in_enum_constant_arguments) { this.scribe.space(); } ((Expression) arguments.get(i)).accept(this ); } ok = true; |
| ||||
for (int i = 0; i < parametersLength; i++) { if (i > 0) { this.scribe.printNextToken(TerminalTokens.TokenNameCOMMA, this.preferences.insert_space_before_comma_in_method_declaration_parameters); this.scribe.printTrailingComment(); } this.scribe.alignFragment(parametersAlignment, i); if (i > 0 && this.preferences.insert_space_after_comma_in_method_declaration_parameters) { this.scribe.space(); } ((SingleVariableDeclaration) parameters.get(i)).accept(this ); } ok = true; |
| |||
for (int i = 0; i < [[#variableb8b74fa0]]; i++) { if (i > 0) { this.scribe.printNextToken(TerminalTokens.TokenNameCOMMA, this.preferences. [[#variableb8b74f20]]); this.scribe.printTrailingComment(); } this.scribe.alignFragment( [[#variableb8b74f00]], i); if (i > 0 && this.preferences. [[#variable96898b60]]) { this.scribe.space(); } (( [[#variable961914a0]]) [[#variableb8b74340]].get(i)).accept(this ); } ok = true; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b8b74fa0]] | parametersLength |
1 | 2 | [[#b8b74fa0]] | argumentsLength |
2 | 1 | [[#b8b74f20]] | insert_space_before_comma_in_method_declaration_parameters |
2 | 2 | [[#b8b74f20]] | insert_space_before_comma_in_enum_constant_arguments |
3 | 1 | [[#b8b74f00]] | parametersAlignment |
3 | 2 | [[#b8b74f00]] | argumentsAlignment |
4 | 1 | [[#96898b60]] | insert_space_after_comma_in_method_declaration_parameters |
4 | 2 | [[#96898b60]] | insert_space_after_comma_in_enum_constant_arguments |
5 | 1 | [[#961914a0]] | SingleVariableDeclaration |
5 | 2 | [[#961914a0]] | Expression |
6 | 1 | [[#b8b74340]] | parameters |
6 | 2 | [[#b8b74340]] | arguments |