CloneSet3966


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9201.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
191499
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java
29546
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor2.java
Clone Instance
1
Line Count
9
Source Line
1499
Source File
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java

    private void formatLeftCurlyBrace( final int line, final String bracePosition) {
        /*
         * deal with (quite unexpected) comments right before lcurly
         */
        this.scribe.printComment();
        if (DefaultCodeFormatterConstants.NEXT_LINE_ON_WRAP.equals(bracePosition) &&
                   (this.scribe.line > line || this.scribe.column >= this.preferences.page_width))
        {
            this.scribe.printNewLine();
        }
    }


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

        private void formatLeftCurlyBrace( final int line, final String bracePosition) {
        /*
         * deal with (quite unexpected) comments right before lcurly
         */
        this.scribe.printComment();
        if (DefaultCodeFormatterConstants.NEXT_LINE_ON_WRAP.equals(bracePosition) &&
                   (this.scribe.line > line || this.scribe.column >= this.preferences.page_width))
        {
            this.scribe.printNewLine();
        }
        }


Clone AbstractionParameter Count: 0Parameter Bindings

private void formatLeftCurlyBrace( final int line, final String bracePosition) {
  /*
           * deal with (quite unexpected) comments right before lcurly
           */
  this.scribe.printComment();
  if (DefaultCodeFormatterConstants.NEXT_LINE_ON_WRAP.equals(bracePosition) && (this.scribe.line > line || this.scribe.column >= this.preferences.page_width)) {
    this.scribe.printNewLine();
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None