| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 3 | 2 | 4 | 0.959 | class_body_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 3 | 1229 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor2.java |
| 2 | 3 | 3357 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor2.java |
| ||||
public boolean visit(Block node) {
formatBlock(node, this.preferences.brace_position_for_block, this.preferences.insert_space_before_opening_brace_in_block);
return false;
}
|
| ||||
public boolean visit(VariableDeclarationExpression node) {
formatLocalDeclaration(node, this.preferences.insert_space_before_comma_in_multiple_local_declarations, this.preferences.insert_space_after_comma_in_multiple_local_declarations);
return false;
}
|
| |||
public boolean visit( [[#variable585be620]] node) {
[[#variable585be5a0]](node, this.preferences. [[#variable585be4e0]], this.preferences. [[#variable585be320]]);
return false;
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#585be620]] | Block |
| 1 | 2 | [[#585be620]] | VariableDeclarationExpression |
| 2 | 1 | [[#585be5a0]] | formatBlock |
| 2 | 2 | [[#585be5a0]] | formatLocalDeclaration |
| 3 | 1 | [[#585be4e0]] | brace_position_for_block |
| 3 | 2 | [[#585be4e0]] | insert_space_before_comma_in_multiple_local_declarations |
| 4 | 1 | [[#585be320]] | insert_space_before_opening_brace_in_block |
| 4 | 2 | [[#585be320]] | insert_space_after_comma_in_multiple_local_declarations |