mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
don't fail when fragment's expected type was invalidated (EA-36483)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user