CloneSet2291


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15201.000statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1152423
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
2152476
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
Clone Instance
1
Line Count
15
Source Line
2423
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java

        /* recovering - might be an empty message send */
        if (this.currentElement != null) {
                if (this.lastIgnoredToken == TokenNamenew) { // was an allocation expression
                        this.lastCheckPoint = this.scanner.startPosition; // force to restart at this exact position                            
                        this.restartRecovery = true;
                        return;
                }
        }

        // ConstructorHeaderName ::=  Modifiersopt 'Identifier' '('
        ConstructorDeclaration cd = new ConstructorDeclaration(this.compilationUnit.compilationResult);

        //name -- this is not really revelant but we do .....
        cd.selector = this.identifierStack[this.identifierPtr];
        long selectorSource = this.identifierPositionStack[this.identifierPtr-- ];
        this.identifierLengthPtr--;


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

        /* recovering - might be an empty message send */
        if (this.currentElement != null) {
                if (this.lastIgnoredToken == TokenNamenew) { // was an allocation expression
                        this.lastCheckPoint = this.scanner.startPosition; // force to restart at this exact position                            
                        this.restartRecovery = true;
                        return;
                }
        }

        // ConstructorHeaderName ::=  Modifiersopt TypeParameters 'Identifier' '('
        ConstructorDeclaration cd = new ConstructorDeclaration(this.compilationUnit.compilationResult);

        //name -- this is not really revelant but we do .....
        cd.selector = this.identifierStack[this.identifierPtr];
        long selectorSource = this.identifierPositionStack[this.identifierPtr-- ];
        this.identifierLengthPtr--;


Clone AbstractionParameter Count: 0Parameter Bindings

/* recovering - might be an empty message send */
if (this.currentElement != null) {
  if (this.lastIgnoredToken == TokenNamenew) { // was an allocation expression
    this.lastCheckPoint = this.scanner.startPosition; // force to restart at this exact position                              
    this.restartRecovery = true;
    return;
  }
}
// ConstructorHeaderName ::=  Modifiersopt TypeParameters 'Identifier' '('
// ConstructorHeaderName ::=  Modifiersopt 'Identifier' '('
ConstructorDeclaration cd = new ConstructorDeclaration(this.compilationUnit.compilationResult);
//name -- this is not really revelant but we do .....
cd.selector = this.identifierStack[this.identifierPtr];
long selectorSource = this.identifierPositionStack[this.identifierPtr-- ];
this.identifierLengthPtr--;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None