CloneSet1716


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18210.987statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1183197
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java
2184134
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java
Clone Instance
1
Line Count
18
Source Line
3197
Source File
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java

                        if (statements != null) {
                                this.scribe.printNewLine();
                                if (this.preferences.indent_statements_compare_to_body) {
                                        this.scribe.indent();
                                }
                                formatStatements(constructorDeclaration.scope, statements, true);
                                this.scribe.printComment();
                                if (this.preferences.indent_statements_compare_to_body) {
                                        this.scribe.unIndent();
                                }
                        }
                        else   if (this.preferences.insert_new_line_in_empty_method_body) {
                                this.scribe.printNewLine();
                                if (this.preferences.indent_statements_compare_to_body) {
                                        this.scribe.indent();
                                }
                                this.scribe.printComment();
                                if (this.preferences.indent_statements_compare_to_body) {
                                        this.scribe.unIndent();
                                }
                               }


Clone Instance
2
Line Count
18
Source Line
4134
Source File
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java

                        if (statements != null) {
                                this.scribe.printNewLine();
                                if (this.preferences.indent_statements_compare_to_body) {
                                        this.scribe.indent();
                                }
                                formatStatements(methodDeclarationScope, statements, true);
                                this.scribe.printComment();
                                if (this.preferences.indent_statements_compare_to_body) {
                                        this.scribe.unIndent();
                                }
                        }
                        else   if (this.preferences.insert_new_line_in_empty_method_body) {
                                this.scribe.printNewLine();
                                if (this.preferences.indent_statements_compare_to_body) {
                                        this.scribe.indent();
                                }
                                this.scribe.printComment();
                                if (this.preferences.indent_statements_compare_to_body) {
                                        this.scribe.unIndent();
                                }
                               }


Clone AbstractionParameter Count: 1Parameter Bindings

if (statements != null) {
  this.scribe.printNewLine();
  if (this.preferences.indent_statements_compare_to_body) {
    this.scribe.indent();
  }
  formatStatements( [[#variableb34c7480]], statements, true);
  this.scribe.printComment();
  if (this.preferences.indent_statements_compare_to_body) {
    this.scribe.unIndent();
  }
}
else
  if (this.preferences.insert_new_line_in_empty_method_body) {
    this.scribe.printNewLine();
    if (this.preferences.indent_statements_compare_to_body) {
      this.scribe.indent();
    }
    this.scribe.printComment();
    if (this.preferences.indent_statements_compare_to_body) {
      this.scribe.unIndent();
    }
  }
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b34c7480]]
constructorDeclaration.scope 
12[[#b34c7480]]
methodDeclarationScope