CloneSet2243


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

        int lastCommentIndex = this.scanner.commentPtr;
        if (lastCommentIndex < 0) return position; // no comment

        // compute the index of the first obsolete comment
        int index = lastCommentIndex;
        int validCount = 0;
        while (index >= 0) {
                int commentEnd = this.scanner.commentStops[index];
                if (commentEnd < 0) commentEnd = -commentEnd; // negative end position for non-javadoc comments
                if (commentEnd <= position) {
                        break;
                }
                index--;
                validCount++;
        }


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

                int lastCommentIndex = this.scanner.commentPtr;
                if (lastCommentIndex < 0) return position; // no comment

                // compute the index of the first obsolete comment
                int index = lastCommentIndex;
                int validCount = 0;
                while (index >= 0) {
                        int commentEnd = this.scanner.commentStops[index];
                        if (commentEnd < 0) commentEnd = -commentEnd; // negative end position for non-javadoc comments
                        if (commentEnd <= position) {
                                break;
                        }
                        index--;
                        validCount++;
                }


Clone AbstractionParameter Count: 0Parameter Bindings

int lastCommentIndex = this.scanner.commentPtr;
if (lastCommentIndex < 0)
  return position; // no comment
// compute the index of the first obsolete comment
int index = lastCommentIndex;
int validCount = 0;
while (index >= 0) {
  int commentEnd = this.scanner.commentStops[index];
  if (commentEnd < 0)
    commentEnd = -commentEnd; // negative end position for non-javadoc comments
  if (commentEnd <= position) {
    break;
  }
  index--;
  validCount++;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None