mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Null exception fix
Provided argument may be null, so we can't guarantee @NotNull if we return it. And parent contract allows us to return null.
This commit is contained in:
@@ -19,7 +19,6 @@ import com.jetbrains.python.psi.*;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
@@ -37,7 +36,7 @@ public class PyAnyExpressionEvaluator extends PyEvaluator {
|
||||
myEvalSequence = evalSequence;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Nullable
|
||||
@Override
|
||||
public Object evaluate(final PyExpression expr) {
|
||||
final Object evaluate = super.evaluate(expr);
|
||||
|
||||
Reference in New Issue
Block a user