mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
forbid @Override if target and source are interfaces and language level is 1.5
This commit is contained in:
@@ -114,9 +114,8 @@ public class OverrideImplementUtil extends OverrideImplementExploreUtil {
|
||||
return false;
|
||||
}
|
||||
if (PsiUtil.isLanguageLevel6OrHigher(targetClass)) return true;
|
||||
if (targetClass.isInterface()) return true;
|
||||
PsiClass superClass = superMethod.getContainingClass();
|
||||
return !superClass.isInterface();
|
||||
return superClass != null && !superClass.isInterface();
|
||||
}
|
||||
|
||||
public static List<PsiMethod> overrideOrImplementMethod(PsiClass aClass,
|
||||
|
||||
Reference in New Issue
Block a user