Lines 1108-1116
Link Here
|
1108 |
// check deprecation in last comment if javadoc (can be followed by non-javadoc comments which are simply ignored) |
1108 |
// check deprecation in last comment if javadoc (can be followed by non-javadoc comments which are simply ignored) |
1109 |
while (lastComment >= 0 && this.scanner.commentStops[lastComment] < 0) lastComment--; // non javadoc comment have negative end positions |
1109 |
while (lastComment >= 0 && this.scanner.commentStops[lastComment] < 0) lastComment--; // non javadoc comment have negative end positions |
1110 |
if (lastComment >= 0 && this.javadocParser != null) { |
1110 |
if (lastComment >= 0 && this.javadocParser != null) { |
1111 |
int commentEnd = this.scanner.commentStops[lastComment] - 1; //stop is one over, |
1111 |
int commentEnd = this.scanner.commentStops[lastComment] - 1; //stop is one over |
1112 |
// do not report problem before last parsed comment while recovering code... |
1112 |
if (this.javadocParser.shouldReportProblems) { |
1113 |
this.javadocParser.reportProblems = this.currentElement == null || commentEnd > this.lastJavadocEnd; |
1113 |
// do not report problem before last parsed comment while recovering code... |
|
|
1114 |
this.javadocParser.reportProblems = this.currentElement == null || commentEnd > this.lastJavadocEnd; |
1115 |
} |
1114 |
if (this.javadocParser.checkDeprecation(lastComment)) { |
1116 |
if (this.javadocParser.checkDeprecation(lastComment)) { |
1115 |
checkAndSetModifiers(ClassFileConstants.AccDeprecated); |
1117 |
checkAndSetModifiers(ClassFileConstants.AccDeprecated); |
1116 |
} |
1118 |
} |
Lines 10204-10207
Link Here
|
10204 |
exp.sourceEnd = this.intStack[this.intPtr--]; |
10206 |
exp.sourceEnd = this.intStack[this.intPtr--]; |
10205 |
exp.sourceStart = this.intStack[this.intPtr--]; |
10207 |
exp.sourceStart = this.intStack[this.intPtr--]; |
10206 |
} |
10208 |
} |
|
|
10209 |
|
10207 |
} |
10210 |
} |