a rough fix for dfa false positive with nested for loop over a reassigned array variable (IDEA-CR-25468)

This commit is contained in:
peter
2017-10-14 07:53:14 +02:00
parent e854317f90
commit 45c3906af1
2 changed files with 17 additions and 4 deletions
@@ -9,4 +9,13 @@ class Foo {
}
}
void test3(final @Nullable Object @NotNull[]@NotNull[] values) {
for (Object[] line : values) {
line = new Object[]{"a"};
for (Object item : line) {
System.out.println(item.hashCode());
}
}
}
}