mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ContractInferenceFromSourceTest: expected data fixed after improved nullity inference
This commit is contained in:
+1
-1
@@ -591,7 +591,7 @@ class Foo {{
|
||||
return s == null ? "" : s;
|
||||
}
|
||||
""")
|
||||
assert c == ['null -> !null', '!null -> param1']
|
||||
assert c == ['!null -> param1'] // NotNull annotation is also inferred, so 'null -> !null' is redundant
|
||||
}
|
||||
|
||||
void "test coalesce"() {
|
||||
|
||||
Reference in New Issue
Block a user