mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 10:07:41 +07:00
ensure language level is retrieved from analyzed method when method hierarchy is processed
This commit is contained in:
+1
-1
@@ -152,7 +152,7 @@ public class HighlightMethodUtil {
|
||||
: includeRealPositionInfo ? method.getReturnTypeElement().getTextRange() : TextRange.EMPTY_RANGE;
|
||||
HighlightInfo highlightInfo = checkSuperMethodSignature(superMethod, superMethodSignature, superReturnType, method, methodSignature,
|
||||
returnType, JavaErrorMessages.message("incompatible.return.type"),
|
||||
toHighlight, languageLevel);
|
||||
toHighlight, PsiUtil.getLanguageLevel(method));
|
||||
if (highlightInfo != null) return highlightInfo;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user