CloneSet3063


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

        private void formatOpeningBrace(String bracePosition, boolean insertSpaceBeforeBrace) {

                if (DefaultCodeFormatterConstants.NEXT_LINE.equals(bracePosition)) {
                        this.scribe.printNewLine();
                }
                else   if (DefaultCodeFormatterConstants.NEXT_LINE_SHIFTED.equals(bracePosition)) {
                        this.scribe.printNewLine();
                        this.scribe.indent();
                       }
                this.scribe.printNextToken(TerminalTokens.TokenNameLBRACE, insertSpaceBeforeBrace);
                this.scribe.printTrailingComment();
        }


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

        private void formatOpeningBrace(String bracePosition, boolean insertSpaceBeforeBrace) {
                if (DefaultCodeFormatterConstants.NEXT_LINE.equals(bracePosition)) {
                        this.scribe.printNewLine();
                }
                else   if (DefaultCodeFormatterConstants.NEXT_LINE_SHIFTED.equals(bracePosition)) {
                        this.scribe.printNewLine();
                        this.scribe.indent();
                       }
                this.scribe.printNextToken(TerminalTokens.TokenNameLBRACE, insertSpaceBeforeBrace);
                this.scribe.printTrailingComment();
        }


Clone AbstractionParameter Count: 0Parameter Bindings

private void formatOpeningBrace(String bracePosition, boolean insertSpaceBeforeBrace) {
  if (DefaultCodeFormatterConstants.NEXT_LINE.equals(bracePosition)) {
    this.scribe.printNewLine();
  }
  else
    if (DefaultCodeFormatterConstants.NEXT_LINE_SHIFTED.equals(bracePosition)) {
      this.scribe.printNewLine();
      this.scribe.indent();
    }
  this.scribe.printNextToken(TerminalTokens.TokenNameLBRACE, insertSpaceBeforeBrace);
  this.scribe.printTrailingComment();
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None