CloneSet1208


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

                if (isFirstClassBodyDeclaration) {
                        int newLinesBeforeFirstClassBodyDeclaration = this.preferences.blank_lines_before_first_class_body_declaration;
                        if (newLinesBeforeFirstClassBodyDeclaration > 0) {
                                this.scribe.printEmptyLines(newLinesBeforeFirstClassBodyDeclaration);
                        }
                }
                else   {
                        final int newLineBeforeChunk = isChunkStart ? this.preferences.blank_lines_before_new_chunk:  0;
                        if (newLineBeforeChunk > 0) {
                                this.scribe.printEmptyLines(newLineBeforeChunk);
                        }
                }
                final int newLinesBeforeMethod = this.preferences.blank_lines_before_method;
                if (newLinesBeforeMethod > 0 && !isFirstClassBodyDeclaration) {
                        this.scribe.printEmptyLines(newLinesBeforeMethod);
                }
                else   if (this.scribe.line != 0 || this.scribe.column != 1) {
                        this.scribe.printNewLine();
                       }


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

                if (isFirstClassBodyDeclaration) {
                        int newLinesBeforeFirstClassBodyDeclaration = this.preferences.blank_lines_before_first_class_body_declaration;
                        if (newLinesBeforeFirstClassBodyDeclaration > 0) {
                                this.scribe.printEmptyLines(newLinesBeforeFirstClassBodyDeclaration);
                        }
                }
                else   {
                        final int newLineBeforeChunk = isChunkStart ? this.preferences.blank_lines_before_new_chunk:  0;
                        if (newLineBeforeChunk > 0) {
                                this.scribe.printEmptyLines(newLineBeforeChunk);
                        }
                }
                final int newLinesBeforeMethod = this.preferences.blank_lines_before_method;
                if (newLinesBeforeMethod > 0 && !isFirstClassBodyDeclaration) {
                        this.scribe.printEmptyLines(newLinesBeforeMethod);
                }
                else   if (this.scribe.line != 0 || this.scribe.column != 1) {
                        this.scribe.printNewLine();
                       }


Clone AbstractionParameter Count: 0Parameter Bindings

if (isFirstClassBodyDeclaration) {
  int newLinesBeforeFirstClassBodyDeclaration = this.preferences.blank_lines_before_first_class_body_declaration;
  if (newLinesBeforeFirstClassBodyDeclaration > 0) {
    this.scribe.printEmptyLines(newLinesBeforeFirstClassBodyDeclaration);
  }
}
else {
  final int newLineBeforeChunk = isChunkStart ? this.preferences.blank_lines_before_new_chunk: 0;
  if (newLineBeforeChunk > 0) {
    this.scribe.printEmptyLines(newLineBeforeChunk);
  }
}
final int newLinesBeforeMethod = this.preferences.blank_lines_before_method;
if (newLinesBeforeMethod > 0 && !isFirstClassBodyDeclaration) {
  this.scribe.printEmptyLines(newLinesBeforeMethod);
}
else
  if (this.scribe.line != 0 || this.scribe.column != 1) {
    this.scribe.printNewLine();
  }
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None