Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 6 | 0.956 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 93 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/old/CodeFormatter.java |
2 | 6 | 101 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/old/CodeFormatter.java |
| ||||
Object formatterNewLineEmptyBlock = this.options.get(JavaCore.FORMATTER_NEWLINE_EMPTY_BLOCK); if (formatterNewLineEmptyBlock != null) { if (JavaCore.INSERT.equals(formatterNewLineEmptyBlock)) { newOptions.put(DefaultCodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_IN_EMPTY_BLOCK, JavaCore.INSERT); } else { newOptions.put(DefaultCodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_IN_EMPTY_BLOCK, JavaCore.DO_NOT_INSERT); } } |
| ||||
Object formatterCompactAssignment = this.options.get(JavaCore.FORMATTER_COMPACT_ASSIGNMENT); if (formatterCompactAssignment != null) { if (JavaCore.COMPACT.equals(formatterCompactAssignment)) { newOptions.put(DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_ASSIGNMENT_OPERATOR, JavaCore.DO_NOT_INSERT); } else { newOptions.put(DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_ASSIGNMENT_OPERATOR, JavaCore.INSERT); } } |
| |||
Object [[#variable53120b20]]= this.options.get(JavaCore. [[#variable53120a60]]); if ( [[#variable53120b20]]!= null) { if (JavaCore. [[#variable4e9bd4a0]].equals( [[#variable53120b20]])) { newOptions.put(DefaultCodeFormatterConstants. [[#variable92d1f820]], JavaCore. [[#variable53120a80]]); } else { newOptions.put(DefaultCodeFormatterConstants. [[#variable92d1f820]], JavaCore. [[#variable531209e0]]); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#53120b20]] | formatterCompactAssignment |
1 | 2 | [[#53120b20]] | formatterNewLineEmptyBlock |
2 | 1 | [[#53120a60]] | FORMATTER_COMPACT_ASSIGNMENT |
2 | 2 | [[#53120a60]] | FORMATTER_NEWLINE_EMPTY_BLOCK |
3 | 1 | [[#4e9bd4a0]] | COMPACT |
3 | 2 | [[#4e9bd4a0]] | INSERT |
4 | 1 | [[#92d1f820]] | FORMATTER_INSERT_SPACE_BEFORE_ASSIGNMENT_OPERATOR |
4 | 2 | [[#92d1f820]] | FORMATTER_INSERT_NEW_LINE_IN_EMPTY_BLOCK |
5 | 1 | [[#53120a80]] | DO_NOT_INSERT |
5 | 2 | [[#53120a80]] | INSERT |
6 | 1 | [[#531209e0]] | INSERT |
6 | 2 | [[#531209e0]] | DO_NOT_INSERT |