support external @Deprecated annotation for cls class & field (IDEA-CR-10878)

This commit is contained in:
peter
2016-05-19 10:44:19 +02:00
parent 7d2e7801e2
commit 3039f8117b
2 changed files with 2 additions and 2 deletions
@@ -273,7 +273,7 @@ public class ClsClassImpl extends ClsMemberImpl<PsiClassStub<?>> implements PsiE
@Override
public boolean isDeprecated() {
return getStub().isDeprecated();
return getStub().isDeprecated() || PsiImplUtil.isDeprecatedByAnnotation(this);
}
public String getSourceFileName() {
@@ -143,7 +143,7 @@ public class ClsFieldImpl extends ClsMemberImpl<PsiFieldStub> implements PsiFiel
@Override
public boolean isDeprecated() {
return getStub().isDeprecated();
return getStub().isDeprecated() || PsiImplUtil.isDeprecatedByAnnotation(this);
}
@Override