mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
not every field with non-annotated constructor initializer is notnull
This commit is contained in:
+3
-2
@@ -188,6 +188,7 @@ public class DfaVariableValue extends DfaValue {
|
||||
return Nullness.UNKNOWN;
|
||||
}
|
||||
|
||||
boolean hasUnknowns = false;
|
||||
for (PsiExpression expression : initializers) {
|
||||
if (!(expression instanceof PsiReferenceExpression)) {
|
||||
return Nullness.UNKNOWN;
|
||||
@@ -200,10 +201,10 @@ public class DfaVariableValue extends DfaValue {
|
||||
return Nullness.NULLABLE;
|
||||
}
|
||||
if (!NullableNotNullManager.isNotNull((PsiParameter)target)) {
|
||||
return Nullness.NOT_NULL;
|
||||
hasUnknowns = true;
|
||||
}
|
||||
}
|
||||
return Nullness.NOT_NULL;
|
||||
return hasUnknowns ? Nullness.UNKNOWN : Nullness.NOT_NULL;
|
||||
}
|
||||
|
||||
return Nullness.UNKNOWN;
|
||||
|
||||
Reference in New Issue
Block a user