mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +07:00
treat lambdas as notnull in dfa & nullity inference (IDEA-134045)
This commit is contained in:
+4
@@ -73,6 +73,10 @@ String bar() { return "z"; }
|
||||
assert inferNullity(parse('Object foo() { return 1; }')) == NOT_NULL
|
||||
}
|
||||
|
||||
void "test null inside lambda"() {
|
||||
assert inferNullity(parse('Object foo() { return () -> { return null; }; }')) == NOT_NULL
|
||||
}
|
||||
|
||||
protected abstract Nullness inferNullity(PsiMethod method)
|
||||
|
||||
protected PsiMethod parse(String method) {
|
||||
|
||||
Reference in New Issue
Block a user