Lines 2809-2824
Link Here
|
2809 |
MethodBinding context = ((AbstractMethodDeclaration)methodScope.referenceContext).binding; |
2809 |
MethodBinding context = ((AbstractMethodDeclaration)methodScope.referenceContext).binding; |
2810 |
if (context != null && context.isViewedAsDeprecated()) |
2810 |
if (context != null && context.isViewedAsDeprecated()) |
2811 |
return true; |
2811 |
return true; |
2812 |
} else { |
2812 |
} else if (methodScope.initializedField != null && methodScope.initializedField.isViewedAsDeprecated()) { |
2813 |
SourceTypeBinding type = ((BlockScope)this).referenceType().binding; |
|
|
2814 |
// inside field declaration ? check field modifier to see if deprecated |
2813 |
// inside field declaration ? check field modifier to see if deprecated |
2815 |
if (methodScope.initializedField != null && methodScope.initializedField.isViewedAsDeprecated()) |
2814 |
return true; |
|
|
2815 |
} |
2816 |
SourceTypeBinding declaringType = ((BlockScope)this).referenceType().binding; |
2817 |
if (declaringType != null) { |
2818 |
declaringType.initializeDeprecatedAnnotationTagBits(); // may not have been resolved until then |
2819 |
if (declaringType.isViewedAsDeprecated()) |
2816 |
return true; |
2820 |
return true; |
2817 |
if (type != null) { |
|
|
2818 |
type.initializeDeprecatedAnnotationTagBits(); // may not have been resolved until then |
2819 |
if (type.isViewedAsDeprecated()) |
2820 |
return true; |
2821 |
} |
2822 |
} |
2821 |
} |
2823 |
break; |
2822 |
break; |
2824 |
case Scope.CLASS_SCOPE : |
2823 |
case Scope.CLASS_SCOPE : |