CloneSet2794


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
191476
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java
29533
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor2.java
Clone Instance
1
Line Count
9
Source Line
1476
Source File
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java

        private void formatEmptyTypeDeclaration(boolean isFirst) {
                boolean hasSemiColon = isNextToken(TerminalTokens.TokenNameSEMICOLON);
                while (isNextToken(TerminalTokens.TokenNameSEMICOLON)) {
                        this.scribe.printComment();
                        this.scribe.printNextToken(TerminalTokens.TokenNameSEMICOLON, this.preferences.insert_space_before_semicolon);
                        this.scribe.printTrailingComment();
                }
                if (hasSemiColon && isFirst) {
                        this.scribe.printNewLine();
                }
        }


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

        private void formatEmptyTypeDeclaration(boolean isFirst) {
                boolean hasSemiColon = isNextToken(TerminalTokens.TokenNameSEMICOLON);
                while (isNextToken(TerminalTokens.TokenNameSEMICOLON)) {
                        this.scribe.printComment();
                        this.scribe.printNextToken(TerminalTokens.TokenNameSEMICOLON, this.preferences.insert_space_before_semicolon);
                        this.scribe.printTrailingComment();
                }
                if (hasSemiColon && isFirst) {
                        this.scribe.printNewLine();
                }
        }


Clone AbstractionParameter Count: 0Parameter Bindings

private void formatEmptyTypeDeclaration(boolean isFirst) {
  boolean hasSemiColon = isNextToken(TerminalTokens.TokenNameSEMICOLON);
  while (isNextToken(TerminalTokens.TokenNameSEMICOLON)) {
    this.scribe.printComment();
    this.scribe.printNextToken(TerminalTokens.TokenNameSEMICOLON, this.preferences.insert_space_before_semicolon);
    this.scribe.printTrailingComment();
  }
  if (hasSemiColon && isFirst) {
    this.scribe.printNewLine();
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None