CloneSet419


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13520.987statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113530
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java
213611
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java
3131150
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java
413270
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor2.java
513289
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor2.java
Clone Instance
1
Line Count
13
Source Line
530
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   {
                        int newLineBeforeChunk = isChunkStart ? this.preferences.blank_lines_before_new_chunk:  0;
                        if (newLineBeforeChunk > 0) {
                                this.scribe.printEmptyLines(newLineBeforeChunk);
                        }
                        final int newLinesBeforeField = this.preferences.blank_lines_before_field;
                        if (newLinesBeforeField > 0) {
                                this.scribe.printEmptyLines(newLinesBeforeField);
                        }
                }


Clone Instance
2
Line Count
13
Source Line
611
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   {
                        int newLineBeforeChunk = isChunkStart ? this.preferences.blank_lines_before_new_chunk:  0;
                        if (newLineBeforeChunk > 0) {
                                this.scribe.printEmptyLines(newLineBeforeChunk);
                        }
                        final int newLinesBeforeField = this.preferences.blank_lines_before_field;
                        if (newLinesBeforeField > 0) {
                                this.scribe.printEmptyLines(newLinesBeforeField);
                        }
                }


Clone Instance
3
Line Count
13
Source Line
1150
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   {
                        int newLineBeforeChunk = isChunkStart ? this.preferences.blank_lines_before_new_chunk:  0;
                        if (newLineBeforeChunk > 0) {
                                this.scribe.printEmptyLines(newLineBeforeChunk);
                        }
                        final int newLinesBeforeMember = this.preferences.blank_lines_before_member_type;
                        if (newLinesBeforeMember > 0) {
                                this.scribe.printEmptyLines(newLinesBeforeMember);
                        }
                }


Clone Instance
4
Line Count
13
Source Line
270
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   {
                                int newLineBeforeChunk = isChunkStart ? this.preferences.blank_lines_before_new_chunk:  0;
                                if (newLineBeforeChunk > 0) {
                                        this.scribe.printEmptyLines(newLineBeforeChunk);
                                }
                                final int newLinesBeforeMember = this.preferences.blank_lines_before_member_type;
                                if (newLinesBeforeMember > 0) {
                                        this.scribe.printEmptyLines(newLinesBeforeMember);
                                }
                        }


Clone Instance
5
Line Count
13
Source Line
289
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   {
                        int newLineBeforeChunk = isChunkStart ? this.preferences.blank_lines_before_new_chunk:  0;
                        if (newLineBeforeChunk > 0) {
                                this.scribe.printEmptyLines(newLineBeforeChunk);
                        }
                        final int newLinesBeforeField = this.preferences.blank_lines_before_field;
                        if (newLinesBeforeField > 0) {
                                this.scribe.printEmptyLines(newLinesBeforeField);
                        }
                }


Clone AbstractionParameter Count: 2Parameter Bindings

if (isFirstClassBodyDeclaration) {
  int newLinesBeforeFirstClassBodyDeclaration = this.preferences.blank_lines_before_first_class_body_declaration;
  if (newLinesBeforeFirstClassBodyDeclaration > 0) {
    this.scribe.printEmptyLines(newLinesBeforeFirstClassBodyDeclaration);
  }
}
else {
  int newLineBeforeChunk = isChunkStart ? this.preferences.blank_lines_before_new_chunk: 0;
  if (newLineBeforeChunk > 0) {
    this.scribe.printEmptyLines(newLineBeforeChunk);
  }
  final int  [[#variable9af3fd40]]= this.preferences. [[#variable9af3fcc0]];
  if ( [[#variable9af3fd40]] > 0) {
    this.scribe.printEmptyLines( [[#variable9af3fd40]]);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9af3fd40]]
newLinesBeforeMember 
12[[#9af3fd40]]
newLinesBeforeField 
13[[#9af3fd40]]
newLinesBeforeField 
14[[#9af3fd40]]
newLinesBeforeField 
15[[#9af3fd40]]
newLinesBeforeMember 
21[[#9af3fcc0]]
blank_lines_before_member_type 
22[[#9af3fcc0]]
blank_lines_before_field 
23[[#9af3fcc0]]
blank_lines_before_field 
24[[#9af3fcc0]]
blank_lines_before_field 
25[[#9af3fcc0]]
blank_lines_before_member_type