mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-91280 Infer not-nullity from numeric comparisons of values assigned based on that not-nullity
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
class Zoo2 {
|
||||
void foo(java.util.List[] dealsInfo) {
|
||||
final int dealsNumber = dealsInfo != null && dealsInfo.length == 2 ? dealsInfo[0].size() : 0;
|
||||
if (dealsNumber > 0) {
|
||||
System.out.println(dealsInfo[0].get(0));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user