mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-89400 - assert: PsiPrimitiveType.getUnboxedType
This commit is contained in:
@@ -126,7 +126,7 @@ public class PsiPrimitiveType extends PsiType.Stub {
|
||||
public static PsiPrimitiveType getUnboxedType(PsiType type) {
|
||||
if (!(type instanceof PsiClassType)) return null;
|
||||
|
||||
assert type.isValid() : type;
|
||||
PsiUtil.ensureValidType(type);
|
||||
LanguageLevel languageLevel = ((PsiClassType)type).getLanguageLevel();
|
||||
if (!languageLevel.isAtLeast(LanguageLevel.JDK_1_5)) return null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user