CloneSet2824


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

                                        if (this.preferences.indent_breaks_compare_to_cases) {
                                                if (wasAStatement && !this.preferences.indent_switchstatements_compare_to_cases) {
                                                        this.scribe.indent();
                                                }
                                        }
                                        else   {
                                                if (wasAStatement) {
                                                        if (this.preferences.indent_switchstatements_compare_to_cases) {
                                                                this.scribe.unIndent();
                                                        }
                                                }
                                                if (wasACase && this.preferences.indent_switchstatements_compare_to_cases) {
                                                        this.scribe.unIndent();
                                                }
                                        }
                                        if (wasACase) {
                                                this.scribe.printNewLine();
                                        }


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

                                        if (this.preferences.indent_breaks_compare_to_cases) {
                                                if (wasAStatement && !this.preferences.indent_switchstatements_compare_to_cases) {
                                                        this.scribe.indent();
                                                }
                                        }
                                        else   {
                                                if (wasAStatement) {
                                                        if (this.preferences.indent_switchstatements_compare_to_cases) {
                                                                this.scribe.unIndent();
                                                        }
                                                }
                                                if (wasACase && this.preferences.indent_switchstatements_compare_to_cases) {
                                                        this.scribe.unIndent();
                                                }
                                        }
                                        if (wasACase) {
                                                this.scribe.printNewLine();
                                        }


Clone AbstractionParameter Count: 0Parameter Bindings

if (this.preferences.indent_breaks_compare_to_cases) {
  if (wasAStatement && !this.preferences.indent_switchstatements_compare_to_cases) {
    this.scribe.indent();
  }
}
else {
  if (wasAStatement) {
    if (this.preferences.indent_switchstatements_compare_to_cases) {
      this.scribe.unIndent();
    }
  }
  if (wasACase && this.preferences.indent_switchstatements_compare_to_cases) {
    this.scribe.unIndent();
  }
}
if (wasACase) {
  this.scribe.printNewLine();
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None