EA-54930 - IOE: PsiJavaParserFacadeImpl.createExpressionFromText

This commit is contained in:
Anna Kozlova
2014-04-04 14:49:49 +02:00
parent 83a1f2a6b6
commit 9de341b401
@@ -66,12 +66,14 @@ public class PsiWildcardType extends PsiType.Stub {
@NotNull
public static PsiWildcardType createExtends(@NotNull PsiManager manager, @NotNull PsiType bound) {
LOG.assertTrue(!(bound instanceof PsiWildcardType));
LOG.assertTrue(bound != PsiType.NULL);
return new PsiWildcardType(manager, true, bound);
}
@NotNull
public static PsiWildcardType createSuper(@NotNull PsiManager manager, @NotNull PsiType bound) {
LOG.assertTrue(!(bound instanceof PsiWildcardType));
LOG.assertTrue(bound != PsiType.NULL);
return new PsiWildcardType(manager, false, bound);
}