mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't search for Override in external annotations
EA-103324 - PIEAE: PsiUtilCore.ensureValid
This commit is contained in:
@@ -125,7 +125,7 @@ public class RenameJavaMethodProcessor extends RenameJavaMemberProcessor {
|
||||
qualifyStaticImportReferences(staticImportHides);
|
||||
|
||||
if (!method.isConstructor() && method.findDeepestSuperMethods().length == 0) {
|
||||
PsiAnnotation annotation = AnnotationUtil.findAnnotation(method, CommonClassNames.JAVA_LANG_OVERRIDE);
|
||||
PsiAnnotation annotation = AnnotationUtil.findAnnotation(method, true, CommonClassNames.JAVA_LANG_OVERRIDE);
|
||||
if (annotation != null && annotation.isPhysical()) {
|
||||
annotation.delete();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user