CloneSet1692


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12260.981statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1121654
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor2.java
2122327
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor2.java
Clone Instance
1
Line Count
12
Source Line
1654
Source File
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor2.java

                                                for (int i = 0; i < argumentsLength; i++) {
                                                        if (i > 0) {
                                                                this.scribe.printNextToken(TerminalTokens.TokenNameCOMMA, this.preferences.insert_space_before_comma_in_enum_constant_arguments);
                                                                this.scribe.printTrailingComment();
                                                        }
                                                        this.scribe.alignFragment(argumentsAlignment, i);
                                                        if (i > 0 && this.preferences.insert_space_after_comma_in_enum_constant_arguments) {
                                                                this.scribe.space();
                                                        }
                                                        ((Expression) arguments.get(i)).accept(this );
                                                }
                                                ok = true;


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

                                        for (int i = 0; i < parametersLength; i++) {
                                                if (i > 0) {
                                                        this.scribe.printNextToken(TerminalTokens.TokenNameCOMMA, this.preferences.insert_space_before_comma_in_method_declaration_parameters);
                                                        this.scribe.printTrailingComment();
                                                }
                                                this.scribe.alignFragment(parametersAlignment, i);
                                                if (i > 0 && this.preferences.insert_space_after_comma_in_method_declaration_parameters) {
                                                        this.scribe.space();
                                                }
                                                ((SingleVariableDeclaration) parameters.get(i)).accept(this );
                                        }
                                        ok = true;


Clone AbstractionParameter Count: 6Parameter Bindings

for (int i = 0; i <  [[#variableb8b74fa0]]; i++) {
  if (i > 0) {
    this.scribe.printNextToken(TerminalTokens.TokenNameCOMMA, this.preferences. [[#variableb8b74f20]]);
    this.scribe.printTrailingComment();
  }
  this.scribe.alignFragment( [[#variableb8b74f00]], i);
  if (i > 0 && this.preferences. [[#variable96898b60]]) {
    this.scribe.space();
  }
  (( [[#variable961914a0]])  [[#variableb8b74340]].get(i)).accept(this );
}
ok = true;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b8b74fa0]]
parametersLength 
12[[#b8b74fa0]]
argumentsLength 
21[[#b8b74f20]]
insert_space_before_comma_in_method_declaration_parameters 
22[[#b8b74f20]]
insert_space_before_comma_in_enum_constant_arguments 
31[[#b8b74f00]]
parametersAlignment 
32[[#b8b74f00]]
argumentsAlignment 
41[[#96898b60]]
insert_space_after_comma_in_method_declaration_parameters 
42[[#96898b60]]
insert_space_after_comma_in_enum_constant_arguments 
51[[#961914a0]]
SingleVariableDeclaration 
52[[#961914a0]]
Expression 
61[[#b8b74340]]
parameters 
62[[#b8b74340]]
arguments