CloneSet1864


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12310.995class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1121979
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
2123133
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
3123626
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
Clone Instance
1
Line Count
12
Source Line
1979
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java

protected void consumeClassHeader() {
        // ClassHeader ::= ClassHeaderName ClassHeaderExtendsopt ClassHeaderImplementsopt

        TypeDeclaration typeDecl = (TypeDeclaration) this.astStack[this.astPtr];
        if (this.currentToken == TokenNameLBRACE) {
                typeDecl.bodyStart = this.scanner.currentPosition;
        }
        if (this.currentElement != null) {
                this.restartRecovery = true; // used to avoid branching back into the regular automaton         
        }
        // flush the comments related to the class header
        this.scanner.commentPtr = -1;
}


Clone Instance
2
Line Count
12
Source Line
3133
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java

protected void consumeEnumHeader() {
        TypeDeclaration typeDecl = (TypeDeclaration) this.astStack[this.astPtr];
        if (this.currentToken == TokenNameLBRACE) {
                typeDecl.bodyStart = this.scanner.currentPosition;
        }

        if (this.currentElement != null) {
                this.restartRecovery = true; // used to avoid branching back into the regular automaton         
        }

        // flush the comments related to the enum header
        this.scanner.commentPtr = -1;
}


Clone Instance
3
Line Count
12
Source Line
3626
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java

protected void consumeInterfaceHeader() {
        // InterfaceHeader ::= InterfaceHeaderName InterfaceHeaderExtendsopt

        TypeDeclaration typeDecl = (TypeDeclaration) this.astStack[this.astPtr];
        if (this.currentToken == TokenNameLBRACE) {
                typeDecl.bodyStart = this.scanner.currentPosition;
        }
        if (this.currentElement != null) {
                this.restartRecovery = true; // used to avoid branching back into the regular automaton         
        }
        // flush the comments related to the interface header
        this.scanner.commentPtr = -1;
}


Clone AbstractionParameter Count: 1Parameter Bindings

protected void [[#variable96804720]]() {
  // ClassHeader ::= ClassHeaderName ClassHeaderExtendsopt ClassHeaderImplementsopt
  // InterfaceHeader ::= InterfaceHeaderName InterfaceHeaderExtendsopt
  TypeDeclaration typeDecl = (TypeDeclaration) this.astStack[this.astPtr];
  if (this.currentToken == TokenNameLBRACE) {
    typeDecl.bodyStart = this.scanner.currentPosition;
  }
  if (this.currentElement != null) {
    this.restartRecovery = true; // used to avoid branching back into the regular automaton              
  }
  // flush the comments related to the class header
  // flush the comments related to the enum header
  // flush the comments related to the interface header
  this.scanner.commentPtr = -1;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#96804720]]
consumeClassHeader 
12[[#96804720]]
consumeEnumHeader 
13[[#96804720]]
consumeInterfaceHeader