mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
support external @Deprecated annotation for cls class & field (IDEA-CR-10878)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user