CloneSet1156


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13301.000statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1133109
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java
2134034
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java
3132247
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor2.java
Clone Instance
1
Line Count
13
Source Line
3109
Source File
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java

                        switch (this.scribe.scanner.source[this.scribe.scanner.currentPosition]) {
                                case '\n':
                                        this.scribe.scanner.currentPosition++;
                                        this.scribe.lastNumberOfNewLines = 1;
                                        break;
                                case '\r':
                                        this.scribe.scanner.currentPosition++;
                                        if (this.scribe.scanner.source[this.scribe.scanner.currentPosition] == '\n') {
                                                this.scribe.scanner.currentPosition++;
                                        }
                                        this.scribe.lastNumberOfNewLines = 1;
                              }
                        return false;


Clone Instance
2
Line Count
13
Source Line
4034
Source File
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java

                        switch (this.scribe.scanner.source[this.scribe.scanner.currentPosition]) {
                                case '\n':
                                        this.scribe.scanner.currentPosition++;
                                        this.scribe.lastNumberOfNewLines = 1;
                                        break;
                                case '\r':
                                        this.scribe.scanner.currentPosition++;
                                        if (this.scribe.scanner.source[this.scribe.scanner.currentPosition] == '\n') {
                                                this.scribe.scanner.currentPosition++;
                                        }
                                        this.scribe.lastNumberOfNewLines = 1;
                              }
                        return false;


Clone Instance
3
Line Count
13
Source Line
2247
Source File
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor2.java

                        switch (this.scribe.scanner.source[this.scribe.scanner.currentPosition]) {
                                case '\n':
                                        this.scribe.scanner.currentPosition++;
                                        this.scribe.lastNumberOfNewLines = 1;
                                        break;
                                case '\r':
                                        this.scribe.scanner.currentPosition++;
                                        if (this.scribe.scanner.source[this.scribe.scanner.currentPosition] == '\n') {
                                                this.scribe.scanner.currentPosition++;
                                        }
                                        this.scribe.lastNumberOfNewLines = 1;
                              }
                        return false;


Clone AbstractionParameter Count: 0Parameter Bindings

switch (this.scribe.scanner.source[this.scribe.scanner.currentPosition]) {
  case '\n':
    this.scribe.scanner.currentPosition++;
    this.scribe.lastNumberOfNewLines = 1;
    break;
  case '\r':
    this.scribe.scanner.currentPosition++;
    if (this.scribe.scanner.source[this.scribe.scanner.currentPosition] == '\n') {
      this.scribe.scanner.currentPosition++;
    }
    this.scribe.lastNumberOfNewLines = 1;
}
return false;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None