Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 2 | 4 | 0.969 | statement_sequence[6] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 4876 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java |
2 | 12 | 2996 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor2.java |
| ||||
this.scribe.printNextToken(TerminalTokens.TokenNameRPAREN, this.preferences.insert_space_before_closing_paren_in_switch); /* * Type body */ String switch_brace = this.preferences.brace_position_for_switch; formatOpeningBrace(switch_brace, this.preferences.insert_space_before_opening_brace_in_switch); this.scribe.printNewLine(); if (this.preferences.indent_switchstatements_compare_to_switch) { this.scribe.indent(); } final Statement[] statements = switchStatement.statements; |
| ||||
this.scribe.printNextToken(TerminalTokens.TokenNameRPAREN, this.preferences.insert_space_before_closing_paren_in_switch); /* * Type body */ String switch_brace = this.preferences.brace_position_for_switch; formatOpeningBrace(switch_brace, this.preferences.insert_space_before_opening_brace_in_switch); this.scribe.printNewLine(); if (this.preferences.indent_switchstatements_compare_to_switch) { this.scribe.indent(); } final List statements = node.statements(); |
| |||
this.scribe.printNextToken(TerminalTokens.TokenNameRPAREN, this.preferences.insert_space_before_closing_paren_in_switch); /* * Type body */ String switch_brace = this.preferences.brace_position_for_switch; formatOpeningBrace(switch_brace, this.preferences.insert_space_before_opening_brace_in_switch); this.scribe.printNewLine(); if (this.preferences.indent_switchstatements_compare_to_switch) { this.scribe.indent(); } final [[#variable52d5d920]] [[#variable52d5d8a0]] statements = [[#variable52d5d820]] [[#variable5603f9c0]]; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#52d5d920]] | Statement |
1 | 2 | [[#52d5d920]] | List |
2 | 1 | [[#52d5d8a0]] | [] |
2 | 2 | [[#52d5d8a0]] | |
3 | 1 | [[#52d5d820]] | switchStatement |
3 | 2 | [[#52d5d820]] | node |
4 | 1 | [[#5603f9c0]] | .statements |
4 | 2 | [[#5603f9c0]] | .statements() |