Lines 1203-1210
Link Here
|
1203 |
if (this.scope.compilerOptions().sourceLevel >= ClassFileConstants.JDK1_5) { |
1203 |
if (this.scope.compilerOptions().sourceLevel >= ClassFileConstants.JDK1_5) { |
1204 |
if ((method.getAnnotationTagBits() & AnnotationDeprecated) != 0) |
1204 |
if ((method.getAnnotationTagBits() & AnnotationDeprecated) != 0) |
1205 |
method.modifiers |= AccDeprecated; |
1205 |
method.modifiers |= AccDeprecated; |
1206 |
else if ((method.modifiers & AccDeprecated) != 0) |
1206 |
else if ((method.modifiers & AccDeprecated) != 0){ |
1207 |
this.scope.problemReporter().missingDeprecatedAnnotationForMethod(method.sourceMethod()); |
1207 |
AbstractMethodDeclaration methodDecl = method.sourceMethod(); |
|
|
1208 |
// if null, method could not be resolved in previous iteration. |
1209 |
// Something is already wrong, we will not log this additional error. |
1210 |
if( methodDecl != null ) |
1211 |
this.scope.problemReporter().missingDeprecatedAnnotationForMethod(methodDecl); |
1212 |
} |
1208 |
} |
1213 |
} |
1209 |
if (isViewedAsDeprecated() && !method.isDeprecated()) |
1214 |
if (isViewedAsDeprecated() && !method.isDeprecated()) |
1210 |
method.modifiers |= AccDeprecatedImplicitly; |
1215 |
method.modifiers |= AccDeprecatedImplicitly; |