CloneSet141


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
26540.993statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1261316
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor2.java
2261508
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor2.java
3262534
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor2.java
4262863
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor2.java
5262928
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor2.java
Clone Instance
1
Line Count
26
Source Line
1316
Source File
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);


Clone Instance
2
Line Count
26
Source Line
1508
Source File
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor2.java

                        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);


Clone Instance
3
Line Count
26
Source Line
2534
Source File
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor2.java

                                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);


Clone Instance
4
Line Count
26
Source Line
2863
Source File
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor2.java

                        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);


Clone Instance
5
Line Count
26
Source Line
2928
Source File
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor2.java

                                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);


Clone AbstractionParameter Count: 4Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b7ccc340]]
"messageArguments" 
12[[#b7ccc340]]
"explicit_constructor_call" 
13[[#b7ccc340]]
"allocation" 
14[[#b7ccc340]]
"explicit_constructor_call" 
15[[#b7ccc340]]
"messageArguments" 
21[[#b7ccc180]]
alignment_for_arguments_in_method_invocation 
22[[#b7ccc180]]
alignment_for_arguments_in_explicit_constructor_call 
23[[#b7ccc180]]
alignment_for_arguments_in_allocation_expression 
24[[#b7ccc180]]
alignment_for_arguments_in_explicit_constructor_call 
25[[#b7ccc180]]
alignment_for_arguments_in_method_invocation 
31[[#95b33a40]]
insert_space_before_comma_in_method_invocation_arguments 
32[[#95b33a40]]
insert_space_before_comma_in_explicit_constructor_call_arguments 
33[[#95b33a40]]
insert_space_before_comma_in_allocation_expression 
34[[#95b33a40]]
insert_space_before_comma_in_explicit_constructor_call_arguments 
35[[#95b33a40]]
insert_space_before_comma_in_method_invocation_arguments 
41[[#95b33a80]]
insert_space_after_comma_in_method_invocation_arguments 
42[[#95b33a80]]
insert_space_after_comma_in_explicit_constructor_call_arguments 
43[[#95b33a80]]
insert_space_after_comma_in_allocation_expression 
44[[#95b33a80]]
insert_space_after_comma_in_explicit_constructor_call_arguments 
45[[#95b33a80]]
insert_space_after_comma_in_method_invocation_arguments