CloneSet1385


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10201.000statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1101062
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
210179
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/compiler/SourceElementParser.java
Clone Instance
1
Line Count
10
Source Line
1062
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java

                // check deprecation in last comment if javadoc (can be followed by non-javadoc comments which are simply ignored)      
                while (lastComment >= 0 && this.scanner.commentStops[lastComment] < 0) lastComment--; // non javadoc comment have negative end positions
                if (lastComment >= 0 && this.javadocParser != null) {
                        int commentEnd = this.scanner.commentStops[lastComment] - 1; //stop is one over,
                        // do not report problem before last parsed comment while recovering code...
                        this.javadocParser.reportProblems = this.currentElement == null || commentEnd > this.lastJavadocEnd;
                        if (this.javadocParser.checkDeprecation(lastComment)) {
                                checkAndSetModifiers(ClassFileConstants.AccDeprecated);
                        }
                        this.javadoc = this.javadocParser.docComment;   // null if check javadoc is not activated
                        if (currentElement == null) this.lastJavadocEnd = commentEnd;
                }


Clone Instance
2
Line Count
10
Source Line
179
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/compiler/SourceElementParser.java

                // check deprecation in last comment if javadoc (can be followed by non-javadoc comments which are simply ignored)      
                while (lastComment >= 0 && this.scanner.commentStops[lastComment] < 0) lastComment--; // non javadoc comment have negative end positions
                if (lastComment >= 0 && this.javadocParser != null) {
                        int commentEnd = this.scanner.commentStops[lastComment] - 1; //stop is one over,
                        // do not report problem before last parsed comment while recovering code...
                        this.javadocParser.reportProblems = this.currentElement == null || commentEnd > this.lastJavadocEnd;
                        if (this.javadocParser.checkDeprecation(lastComment)) {
                                checkAndSetModifiers(ClassFileConstants.AccDeprecated);
                        }
                        this.javadoc = this.javadocParser.docComment;   // null if check javadoc is not activated
                        if (currentElement == null) this.lastJavadocEnd = commentEnd;
                }


Clone AbstractionParameter Count: 0Parameter Bindings

// check deprecation in last comment if javadoc (can be followed by non-javadoc comments which are simply ignored)      
while (lastComment >= 0 && this.scanner.commentStops[lastComment] < 0)
  lastComment--; // non javadoc comment have negative end positions
if (lastComment >= 0 && this.javadocParser != null) {
  int commentEnd = this.scanner.commentStops[lastComment] - 1; //stop is one over,
  // do not report problem before last parsed comment while recovering code...
  this.javadocParser.reportProblems = this.currentElement == null || commentEnd > this.lastJavadocEnd;
  if (this.javadocParser.checkDeprecation(lastComment)) {
    checkAndSetModifiers(ClassFileConstants.AccDeprecated);
  }
  this.javadoc = this.javadocParser.docComment; // null if check javadoc is not activated
  if (currentElement == null)
    this.lastJavadocEnd = commentEnd;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None