Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
26 | 5 | 4 | 0.993 | statement_sequence[5] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 26 | 1316 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor2.java |
2 | 26 | 1508 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor2.java |
3 | 26 | 2534 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor2.java |
4 | 26 | 2863 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor2.java |
5 | 26 | 2928 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor2.java |
| ||||
Alignment2 argumentsAlignment = this.scribe.createAlignment( "allocation", //$NON-NLS-1$ this.preferences.alignment_for_arguments_in_allocation_expression, argumentsLength, this.scribe.scanner.currentPosition ); this.scribe.enterAlignment(argumentsAlignment); boolean ok = false; do { try { for (int i = 0; i < argumentsLength; i++) { if (i > 0) { this.scribe.printNextToken(TerminalTokens.TokenNameCOMMA, this.preferences.insert_space_before_comma_in_allocation_expression); this.scribe.printTrailingComment(); } this.scribe.alignFragment(argumentsAlignment, i); if (i > 0 && this.preferences.insert_space_after_comma_in_allocation_expression) { this.scribe.space(); } ((Expression) arguments.get(i)).accept(this ); } ok = true; } catch (AlignmentException e) { this.scribe.redoAlignment(e); } } while ( !ok); this.scribe.exitAlignment(argumentsAlignment, true); |
| ||||
Alignment2 argumentsAlignment = this.scribe.createAlignment( "explicit_constructor_call", //$NON-NLS-1$ this.preferences.alignment_for_arguments_in_explicit_constructor_call, argumentsLength, this.scribe.scanner.currentPosition ); this.scribe.enterAlignment(argumentsAlignment); boolean ok = false; do { try { for (int i = 0; i < argumentsLength; i++) { if (i > 0) { this.scribe.printNextToken(TerminalTokens.TokenNameCOMMA, this.preferences.insert_space_before_comma_in_explicit_constructor_call_arguments); this.scribe.printTrailingComment(); } this.scribe.alignFragment(argumentsAlignment, i); if (i > 0 && this.preferences.insert_space_after_comma_in_explicit_constructor_call_arguments) { this.scribe.space(); } ((Expression) arguments.get(i)).accept(this ); } ok = true; } catch (AlignmentException e) { this.scribe.redoAlignment(e); } } while ( !ok); this.scribe.exitAlignment(argumentsAlignment, true); |
| ||||
Alignment2 argumentsAlignment = this.scribe.createAlignment( "messageArguments", //$NON-NLS-1$ this.preferences.alignment_for_arguments_in_method_invocation, argumentsLength, this.scribe.scanner.currentPosition ); this.scribe.enterAlignment(argumentsAlignment); boolean ok = false; do { try { for (int i = 0; i < argumentsLength; i++) { if (i > 0) { this.scribe.printNextToken(TerminalTokens.TokenNameCOMMA, this.preferences.insert_space_before_comma_in_method_invocation_arguments); this.scribe.printTrailingComment(); } this.scribe.alignFragment(argumentsAlignment, i); if (i > 0 && this.preferences.insert_space_after_comma_in_method_invocation_arguments) { this.scribe.space(); } ((Expression) arguments.get(i)).accept(this ); } ok = true; } catch (AlignmentException e) { this.scribe.redoAlignment(e); } } while ( !ok); this.scribe.exitAlignment(argumentsAlignment, true); |
| ||||
Alignment2 argumentsAlignment = this.scribe.createAlignment( "explicit_constructor_call", //$NON-NLS-1$ this.preferences.alignment_for_arguments_in_explicit_constructor_call, argumentsLength, this.scribe.scanner.currentPosition ); this.scribe.enterAlignment(argumentsAlignment); boolean ok = false; do { try { for (int i = 0; i < argumentsLength; i++) { if (i > 0) { this.scribe.printNextToken(TerminalTokens.TokenNameCOMMA, this.preferences.insert_space_before_comma_in_explicit_constructor_call_arguments); this.scribe.printTrailingComment(); } this.scribe.alignFragment(argumentsAlignment, i); if (i > 0 && this.preferences.insert_space_after_comma_in_explicit_constructor_call_arguments) { this.scribe.space(); } ((Expression) arguments.get(i)).accept(this ); } ok = true; } catch (AlignmentException e) { this.scribe.redoAlignment(e); } } while ( !ok); this.scribe.exitAlignment(argumentsAlignment, true); |
| ||||
Alignment2 argumentsAlignment = this.scribe.createAlignment( "messageArguments", //$NON-NLS-1$ this.preferences.alignment_for_arguments_in_method_invocation, argumentsLength, this.scribe.scanner.currentPosition ); this.scribe.enterAlignment(argumentsAlignment); boolean ok = false; do { try { for (int i = 0; i < argumentsLength; i++) { if (i > 0) { this.scribe.printNextToken(TerminalTokens.TokenNameCOMMA, this.preferences.insert_space_before_comma_in_method_invocation_arguments); this.scribe.printTrailingComment(); } this.scribe.alignFragment(argumentsAlignment, i); if (i > 0 && this.preferences.insert_space_after_comma_in_method_invocation_arguments) { this.scribe.space(); } ((Expression) arguments.get(i)).accept(this ); } ok = true; } catch (AlignmentException e) { this.scribe.redoAlignment(e); } } while ( !ok); this.scribe.exitAlignment(argumentsAlignment, true); |
| |||
Alignment2 argumentsAlignment = this.scribe.createAlignment( [[#variableb7ccc340]], //$NON-NLS-1$ this.preferences. [[#variableb7ccc180]], argumentsLength, this.scribe.scanner.currentPosition); this.scribe.enterAlignment(argumentsAlignment); boolean ok = false; do { try { for (int i = 0; i < argumentsLength; i++) { if (i > 0) { this.scribe.printNextToken(TerminalTokens.TokenNameCOMMA, this.preferences. [[#variable95b33a40]]); this.scribe.printTrailingComment(); } this.scribe.alignFragment(argumentsAlignment, i); if (i > 0 && this.preferences. [[#variable95b33a80]]) { this.scribe.space(); } ((Expression) arguments.get(i)).accept(this ); } ok = true; } catch (AlignmentException e) { this.scribe.redoAlignment(e); } } while ( !ok); this.scribe.exitAlignment(argumentsAlignment, true); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b7ccc340]] | "messageArguments" |
1 | 2 | [[#b7ccc340]] | "explicit_constructor_call" |
1 | 3 | [[#b7ccc340]] | "allocation" |
1 | 4 | [[#b7ccc340]] | "explicit_constructor_call" |
1 | 5 | [[#b7ccc340]] | "messageArguments" |
2 | 1 | [[#b7ccc180]] | alignment_for_arguments_in_method_invocation |
2 | 2 | [[#b7ccc180]] | alignment_for_arguments_in_explicit_constructor_call |
2 | 3 | [[#b7ccc180]] | alignment_for_arguments_in_allocation_expression |
2 | 4 | [[#b7ccc180]] | alignment_for_arguments_in_explicit_constructor_call |
2 | 5 | [[#b7ccc180]] | alignment_for_arguments_in_method_invocation |
3 | 1 | [[#95b33a40]] | insert_space_before_comma_in_method_invocation_arguments |
3 | 2 | [[#95b33a40]] | insert_space_before_comma_in_explicit_constructor_call_arguments |
3 | 3 | [[#95b33a40]] | insert_space_before_comma_in_allocation_expression |
3 | 4 | [[#95b33a40]] | insert_space_before_comma_in_explicit_constructor_call_arguments |
3 | 5 | [[#95b33a40]] | insert_space_before_comma_in_method_invocation_arguments |
4 | 1 | [[#95b33a80]] | insert_space_after_comma_in_method_invocation_arguments |
4 | 2 | [[#95b33a80]] | insert_space_after_comma_in_explicit_constructor_call_arguments |
4 | 3 | [[#95b33a80]] | insert_space_after_comma_in_allocation_expression |
4 | 4 | [[#95b33a80]] | insert_space_after_comma_in_explicit_constructor_call_arguments |
4 | 5 | [[#95b33a80]] | insert_space_after_comma_in_method_invocation_arguments |