mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
hide "static methods should have body" message for interface methods < 1.8 (DEA-129765)
This commit is contained in:
+1
-1
@@ -1026,7 +1026,7 @@ public class HighlightMethodUtil {
|
||||
description = JavaErrorMessages.message("extension.method.should.have.a.body");
|
||||
additionalFixes.add(QUICK_FIX_FACTORY.createAddMethodBodyFix(method));
|
||||
}
|
||||
else if (isInterface && isStatic) {
|
||||
else if (isInterface && isStatic && languageLevel.isAtLeast(LanguageLevel.JDK_1_8)) {
|
||||
description = "Static methods in interfaces should have a body";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user