CloneSet251


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
25410.991statement_sequence[7]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1256497
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
2256867
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
325561
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/compiler/SourceElementParser.java
425656
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/compiler/SourceElementParser.java
Clone Instance
1
Line Count
25
Source Line
6497
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java

        this.modifiers = ClassFileConstants.AccDefault;
        this.modifiersSourceStart = -1; // <-- see comment into modifiersFlag(int)

        if (this.currentToken == TokenNameSEMICOLON) {
                impt.declarationSourceEnd = this.scanner.currentPosition - 1;
        }
        else   {
                impt.declarationSourceEnd = impt.sourceEnd;
        }
        impt.declarationEnd = impt.declarationSourceEnd;
        //this.endPosition is just before the ;
        impt.declarationSourceStart = this.intStack[this.intPtr-- ];
        if ( !this.statementRecoveryActivated &&
                          this.options.sourceLevel < ClassFileConstants.JDK1_5 &&
                          this.lastErrorEndPositionBeforeRecovery < this.scanner.currentPosition) {
                impt.modifiers = ClassFileConstants.AccDefault; // convert the static import reference to a non-static importe reference
                this.problemReporter().invalidUsageOfStaticImports(impt);
        }

        // recovery
        if (this.currentElement != null) {
                this.lastCheckPoint = impt.declarationSourceEnd + 1;
                this.currentElement = this.currentElement.add(impt, 0);
                this.lastIgnoredToken = -1;
                this.restartRecovery = true; // used to avoid branching back into the regular automaton         
        }


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

        this.modifiers = ClassFileConstants.AccDefault;
        this.modifiersSourceStart = -1; // <-- see comment into modifiersFlag(int)

        if (this.currentToken == TokenNameSEMICOLON) {
                impt.declarationSourceEnd = this.scanner.currentPosition - 1;
        }
        else   {
                impt.declarationSourceEnd = impt.sourceEnd;
        }
        impt.declarationEnd = impt.declarationSourceEnd;
        //this.endPosition is just before the ;
        impt.declarationSourceStart = this.intStack[this.intPtr-- ];
        if ( !this.statementRecoveryActivated &&
                          options.sourceLevel < ClassFileConstants.JDK1_5 &&
                          this.lastErrorEndPositionBeforeRecovery < this.scanner.currentPosition) {
                impt.modifiers = ClassFileConstants.AccDefault; // convert the static import reference to a non-static importe reference
                this.problemReporter().invalidUsageOfStaticImports(impt);
        }

        // recovery
        if (this.currentElement != null) {
                this.lastCheckPoint = impt.declarationSourceEnd + 1;
                this.currentElement = this.currentElement.add(impt, 0);
                this.lastIgnoredToken = -1;
                this.restartRecovery = true; // used to avoid branching back into the regular automaton         
        }


Clone Instance
3
Line Count
25
Source Line
561
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/compiler/SourceElementParser.java

        this.modifiers = ClassFileConstants.AccDefault;
        this.modifiersSourceStart = -1; // <-- see comment into modifiersFlag(int)

        if (this.currentToken == TokenNameSEMICOLON) {
                impt.declarationSourceEnd = this.scanner.currentPosition - 1;
        }
        else   {
                impt.declarationSourceEnd = impt.sourceEnd;
        }
        impt.declarationEnd = impt.declarationSourceEnd;
        //this.endPosition is just before the ;
        impt.declarationSourceStart = this.intStack[this.intPtr-- ];
        if ( !this.statementRecoveryActivated &&
                          this.options.sourceLevel < ClassFileConstants.JDK1_5 &&
                          this.lastErrorEndPositionBeforeRecovery < this.scanner.currentPosition) {
                impt.modifiers = ClassFileConstants.AccDefault; // convert the static import reference to a non-static importe reference
                this.problemReporter().invalidUsageOfStaticImports(impt);
        }

        // recovery
        if (this.currentElement != null) {
                this.lastCheckPoint = impt.declarationSourceEnd + 1;
                this.currentElement = this.currentElement.add(impt, 0);
                this.lastIgnoredToken = -1;
                this.restartRecovery = true; // used to avoid branching back into the regular automaton         
        }


Clone Instance
4
Line Count
25
Source Line
656
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/compiler/SourceElementParser.java

        this.modifiers = ClassFileConstants.AccDefault;
        this.modifiersSourceStart = -1; // <-- see comment into modifiersFlag(int)

        if (this.currentToken == TokenNameSEMICOLON) {
                impt.declarationSourceEnd = this.scanner.currentPosition - 1;
        }
        else   {
                impt.declarationSourceEnd = impt.sourceEnd;
        }
        impt.declarationEnd = impt.declarationSourceEnd;
        //this.endPosition is just before the ;
        impt.declarationSourceStart = this.intStack[this.intPtr-- ];
        if ( !this.statementRecoveryActivated &&
                          options.sourceLevel < ClassFileConstants.JDK1_5 &&
                          this.lastErrorEndPositionBeforeRecovery < this.scanner.currentPosition) {
                impt.modifiers = ClassFileConstants.AccDefault; // convert the static import reference to a non-static importe reference
                this.problemReporter().invalidUsageOfStaticImports(impt);
        }

        // recovery
        if (this.currentElement != null) {
                this.lastCheckPoint = impt.declarationSourceEnd + 1;
                this.currentElement = this.currentElement.add(impt, 0);
                this.lastIgnoredToken = -1;
                this.restartRecovery = true; // used to avoid branching back into the regular automaton         
        }


Clone AbstractionParameter Count: 1Parameter Bindings

this.modifiers = ClassFileConstants.AccDefault;
this.modifiersSourceStart = -1; // <-- see comment into modifiersFlag(int)
if (this.currentToken == TokenNameSEMICOLON) {
  impt.declarationSourceEnd = this.scanner.currentPosition - 1;
}
else {
  impt.declarationSourceEnd = impt.sourceEnd;
}
impt.declarationEnd = impt.declarationSourceEnd;
//this.endPosition is just before the ;
impt.declarationSourceStart = this.intStack[this.intPtr-- ];
if ( !this.statementRecoveryActivated && [[#variablea5c78a00]].sourceLevel < ClassFileConstants.JDK1_5 && this.lastErrorEndPositionBeforeRecovery < this.scanner.currentPosition) {
  impt.modifiers = ClassFileConstants.AccDefault; // convert the static import reference to a non-static importe reference
  this.problemReporter().invalidUsageOfStaticImports(impt);
}
// recovery
if (this.currentElement != null) {
  this.lastCheckPoint = impt.declarationSourceEnd + 1;
  this.currentElement = this.currentElement.add(impt, 0);
  this.lastIgnoredToken = -1;
  this.restartRecovery = true; // used to avoid branching back into the regular automaton              
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a5c78a00]]
this.options 
12[[#a5c78a00]]
options 
13[[#a5c78a00]]
this.options 
14[[#a5c78a00]]
options