| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 37 | 3 | 5 | 0.994 | statement_sequence[3] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 37 | 2234 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java |
| 2 | 37 | 3448 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java |
| 3 | 37 | 4527 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java |
| ||||
this.scribe.printNextToken(TerminalTokens.TokenNameLPAREN, this.preferences.insert_space_before_opening_paren_in_method_invocation);
final Expression[] arguments = allocationExpression.arguments;
if (arguments != null) {
if (this.preferences.insert_space_after_opening_paren_in_method_invocation) {
this.scribe.space();
}
int argumentLength = arguments.length;
Alignment argumentsAlignment = this.scribe.createAlignment(
"allocation", //$NON-NLS-1$
this.preferences.alignment_for_arguments_in_allocation_expression,
argumentLength,
this.scribe.scanner.currentPosition );
this.scribe.enterAlignment(argumentsAlignment);
boolean ok = false;
do {
try {
for (int i = 0; i < argumentLength; 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();
}
arguments[i].traverse(this, scope);
}
ok = true;
} catch (AlignmentException e) {
this.scribe.redoAlignment(e);
}
}
while ( !ok);
this.scribe.exitAlignment(argumentsAlignment, true);
this.scribe.printNextToken(TerminalTokens.TokenNameRPAREN, this.preferences.insert_space_before_closing_paren_in_method_invocation);
}
else {
this.scribe.printNextToken(TerminalTokens.TokenNameRPAREN, this.preferences.insert_space_between_empty_parens_in_method_invocation);
}
|
| ||||
this.scribe.printNextToken(TerminalTokens.TokenNameLPAREN, this.preferences.insert_space_before_opening_paren_in_method_invocation);
final Expression[] arguments = explicitConstructor.arguments;
if (arguments != null) {
if (this.preferences.insert_space_after_opening_paren_in_method_invocation) {
this.scribe.space();
}
int argumentLength = arguments.length;
Alignment argumentsAlignment = this.scribe.createAlignment(
"explicit_constructor_call", //$NON-NLS-1$
this.preferences.alignment_for_arguments_in_explicit_constructor_call,
argumentLength,
this.scribe.scanner.currentPosition );
this.scribe.enterAlignment(argumentsAlignment);
boolean ok = false;
do {
try {
for (int i = 0; i < argumentLength; 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();
}
arguments[i].traverse(this, scope);
}
ok = true;
} catch (AlignmentException e) {
this.scribe.redoAlignment(e);
}
}
while ( !ok);
this.scribe.exitAlignment(argumentsAlignment, true);
this.scribe.printNextToken(TerminalTokens.TokenNameRPAREN, this.preferences.insert_space_before_closing_paren_in_method_invocation);
}
else {
this.scribe.printNextToken(TerminalTokens.TokenNameRPAREN, this.preferences.insert_space_between_empty_parens_in_method_invocation);
}
|
| ||||
this.scribe.printNextToken(TerminalTokens.TokenNameLPAREN, this.preferences.insert_space_before_opening_paren_in_method_invocation);
final Expression[] arguments = qualifiedAllocationExpression.arguments;
if (arguments != null) {
if (this.preferences.insert_space_after_opening_paren_in_method_invocation) {
this.scribe.space();
}
int argumentLength = arguments.length;
Alignment argumentsAlignment = this.scribe.createAlignment(
"allocation", //$NON-NLS-1$
this.preferences.alignment_for_arguments_in_qualified_allocation_expression,
argumentLength,
this.scribe.scanner.currentPosition );
this.scribe.enterAlignment(argumentsAlignment);
boolean ok = false;
do {
try {
for (int i = 0; i < argumentLength; 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();
}
arguments[i].traverse(this, scope);
}
ok = true;
} catch (AlignmentException e) {
this.scribe.redoAlignment(e);
}
}
while ( !ok);
this.scribe.exitAlignment(argumentsAlignment, true);
this.scribe.printNextToken(TerminalTokens.TokenNameRPAREN, this.preferences.insert_space_before_closing_paren_in_method_invocation);
}
else {
this.scribe.printNextToken(TerminalTokens.TokenNameRPAREN, this.preferences.insert_space_between_empty_parens_in_method_invocation);
}
|
| |||
this.scribe.printNextToken(TerminalTokens.TokenNameLPAREN, this.preferences.insert_space_before_opening_paren_in_method_invocation);
final Expression[] arguments = [[#variableb441ef40]].arguments;
if (arguments != null) {
if (this.preferences.insert_space_after_opening_paren_in_method_invocation) {
this.scribe.space();
}
int argumentLength = arguments.length;
Alignment argumentsAlignment = this.scribe.createAlignment( [[#variableb441ef20]], //$NON-NLS-1$
this.preferences. [[#variable7c3cabe0]], argumentLength, this.scribe.scanner.currentPosition);
this.scribe.enterAlignment(argumentsAlignment);
boolean ok = false;
do {
try {
for (int i = 0; i < argumentLength; i++) {
if (i > 0) {
this.scribe.printNextToken(TerminalTokens.TokenNameCOMMA, this.preferences. [[#variableb441ee80]]);
this.scribe.printTrailingComment();
}
this.scribe.alignFragment(argumentsAlignment, i);
if (i > 0 && this.preferences. [[#variablea196e900]]) {
this.scribe.space();
}
arguments[i].traverse(this, scope);
}
ok = true;
}
catch (AlignmentException e) {
this.scribe.redoAlignment(e);
}
}
while ( !ok);
this.scribe.exitAlignment(argumentsAlignment, true);
this.scribe.printNextToken(TerminalTokens.TokenNameRPAREN, this.preferences.insert_space_before_closing_paren_in_method_invocation);
}
else {
this.scribe.printNextToken(TerminalTokens.TokenNameRPAREN, this.preferences.insert_space_between_empty_parens_in_method_invocation);
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#b441ef40]] | qualifiedAllocationExpression |
| 1 | 2 | [[#b441ef40]] | explicitConstructor |
| 1 | 3 | [[#b441ef40]] | allocationExpression |
| 2 | 1 | [[#b441ef20]] | "allocation" |
| 2 | 2 | [[#b441ef20]] | "explicit_constructor_call" |
| 2 | 3 | [[#b441ef20]] | "allocation" |
| 3 | 1 | [[#7c3cabe0]] | alignment_for_arguments_in_qualified_allocation_expression |
| 3 | 2 | [[#7c3cabe0]] | alignment_for_arguments_in_explicit_constructor_call |
| 3 | 3 | [[#7c3cabe0]] | alignment_for_arguments_in_allocation_expression |
| 4 | 1 | [[#b441ee80]] | insert_space_before_comma_in_allocation_expression |
| 4 | 2 | [[#b441ee80]] | insert_space_before_comma_in_explicit_constructor_call_arguments |
| 4 | 3 | [[#b441ee80]] | insert_space_before_comma_in_allocation_expression |
| 5 | 1 | [[#a196e900]] | insert_space_after_comma_in_allocation_expression |
| 5 | 2 | [[#a196e900]] | insert_space_after_comma_in_explicit_constructor_call_arguments |
| 5 | 3 | [[#a196e900]] | insert_space_after_comma_in_allocation_expression |