mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java-analysis] NullityInferrer: don't try to add both annotations to a variable
The conditions are mutually exclusive logically, and the `else` keyword makes it explicit. GitOrigin-RevId: cbb0b81fb4495f2ac74e7e190f9289a232bde2be
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ca6c111248
commit
dfafd52e21
@@ -231,7 +231,7 @@ public class NullityInferrer {
|
||||
if (variableNeverAssignedNull(variable)) {
|
||||
registerNotNullAnnotation(variable);
|
||||
}
|
||||
if (variableSometimesAssignedNull(variable)) {
|
||||
else if (variableSometimesAssignedNull(variable)) {
|
||||
registerNullableAnnotation(variable);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user