mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
do not insert @Override for static methods
This commit is contained in:
@@ -229,7 +229,7 @@ public class OverrideImplementUtil {
|
||||
}
|
||||
|
||||
public static boolean canInsertOverride(PsiMethod superMethod, PsiClass targetClass) {
|
||||
if (superMethod.isConstructor()) {
|
||||
if (superMethod.isConstructor() || superMethod.hasModifierProperty(PsiModifier.STATIC)) {
|
||||
return false;
|
||||
}
|
||||
if (!PsiUtil.isLanguageLevel5OrHigher(targetClass)) {
|
||||
|
||||
Reference in New Issue
Block a user