mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-100955 - IAE: PsiUtil.getLanguageLevel
This commit is contained in:
@@ -158,6 +158,7 @@ public class PsiPrimitiveType extends PsiType.Stub {
|
||||
@Nullable
|
||||
public PsiClassType getBoxedType(@NotNull PsiElement context) {
|
||||
PsiFile file = context.getContainingFile();
|
||||
if (file == null) return null;
|
||||
LanguageLevel languageLevel = PsiUtil.getLanguageLevel(file);
|
||||
if (!languageLevel.isAtLeast(LanguageLevel.JDK_1_5)) return null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user