don't fail when fragment's expected type was invalidated (EA-36483)

This commit is contained in:
peter
2012-08-07 19:07:44 +02:00
parent 367771be6b
commit 0ea1c307ab
2 changed files with 5 additions and 3 deletions
@@ -15,6 +15,8 @@
*/
package com.intellij.psi;
import org.jetbrains.annotations.Nullable;
/**
* Represents a fragment of Java code the contents of which is an expression.
*
@@ -34,7 +36,7 @@ public interface PsiExpressionCodeFragment extends JavaCodeFragment {
*
* @return the expected type of the expression.
*/
PsiType getExpectedType();
@Nullable PsiType getExpectedType();
/**
* Sets the expected type of the expression (not used by the expression itself,