CloneSet243


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
25201.000statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1257977
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
225184
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/CommentRecorderParser.java
Clone Instance
1
Line Count
25
Source Line
7977
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java

        switch (validCount) {
                case 0:
                        // do nothing
                        break;
                // move valid comment infos, overriding obsolete comment infos
                case 2:
                        this.scanner.commentStarts[0] = this.scanner.commentStarts[index + 1];
                        this.scanner.commentStops[0] = this.scanner.commentStops[index + 1];
                        this.scanner.commentTagStarts[0] = this.scanner.commentTagStarts[index + 1];
                        this.scanner.commentStarts[1] = this.scanner.commentStarts[index + 2];
                        this.scanner.commentStops[1] = this.scanner.commentStops[index + 2];
                        this.scanner.commentTagStarts[1] = this.scanner.commentTagStarts[index + 2];
                        break;
                case 1:
                        this.scanner.commentStarts[0] = this.scanner.commentStarts[index + 1];
                        this.scanner.commentStops[0] = this.scanner.commentStops[index + 1];
                        this.scanner.commentTagStarts[0] = this.scanner.commentTagStarts[index + 1];
                        break;
                default:
                        System.arraycopy(this.scanner.commentStarts, index + 1, this.scanner.commentStarts, 0, validCount);
                        System.arraycopy(this.scanner.commentStops, index + 1, this.scanner.commentStops, 0, validCount);
                        System.arraycopy(this.scanner.commentTagStarts, index + 1, this.scanner.commentTagStarts, 0, validCount);
              }
        this.scanner.commentPtr = validCount - 1;
        return position;


Clone Instance
2
Line Count
25
Source Line
184
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/CommentRecorderParser.java

                switch (validCount) {
                        case 0:
                                // do nothing
                                break;
                        // move valid comment infos, overriding obsolete comment infos
                        case 2:
                                this.scanner.commentStarts[0] = this.scanner.commentStarts[index + 1];
                                this.scanner.commentStops[0] = this.scanner.commentStops[index + 1];
                                this.scanner.commentTagStarts[0] = this.scanner.commentTagStarts[index + 1];
                                this.scanner.commentStarts[1] = this.scanner.commentStarts[index + 2];
                                this.scanner.commentStops[1] = this.scanner.commentStops[index + 2];
                                this.scanner.commentTagStarts[1] = this.scanner.commentTagStarts[index + 2];
                                break;
                        case 1:
                                this.scanner.commentStarts[0] = this.scanner.commentStarts[index + 1];
                                this.scanner.commentStops[0] = this.scanner.commentStops[index + 1];
                                this.scanner.commentTagStarts[0] = this.scanner.commentTagStarts[index + 1];
                                break;
                        default:
                                System.arraycopy(this.scanner.commentStarts, index + 1, this.scanner.commentStarts, 0, validCount);
                                System.arraycopy(this.scanner.commentStops, index + 1, this.scanner.commentStops, 0, validCount);
                                System.arraycopy(this.scanner.commentTagStarts, index + 1, this.scanner.commentTagStarts, 0, validCount);
                      }
                this.scanner.commentPtr = validCount - 1;
                return position;


Clone AbstractionParameter Count: 0Parameter Bindings

switch (validCount) {
  case 0:
    // do nothing
    break;
  // move valid comment infos, overriding obsolete comment infos
  case 2:
    this.scanner.commentStarts[0] = this.scanner.commentStarts[index + 1];
    this.scanner.commentStops[0] = this.scanner.commentStops[index + 1];
    this.scanner.commentTagStarts[0] = this.scanner.commentTagStarts[index + 1];
    this.scanner.commentStarts[1] = this.scanner.commentStarts[index + 2];
    this.scanner.commentStops[1] = this.scanner.commentStops[index + 2];
    this.scanner.commentTagStarts[1] = this.scanner.commentTagStarts[index + 2];
    break;
  case 1:
    this.scanner.commentStarts[0] = this.scanner.commentStarts[index + 1];
    this.scanner.commentStops[0] = this.scanner.commentStops[index + 1];
    this.scanner.commentTagStarts[0] = this.scanner.commentTagStarts[index + 1];
    break;
  default:
    System.arraycopy(this.scanner.commentStarts, index + 1, this.scanner.commentStarts, 0, validCount);
    System.arraycopy(this.scanner.commentStops, index + 1, this.scanner.commentStops, 0, validCount);
    System.arraycopy(this.scanner.commentTagStarts, index + 1, this.scanner.commentTagStarts, 0, validCount);
}
this.scanner.commentPtr = validCount - 1;
return position;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None