Files
openide/java/java-tests/testData/inspection/dataFlow/fixture/ClassInsideLambda.java
Tagir Valeev 2ffc666e97 Fix nested dataflow that initializes field nullity
It can analyze outer contexts just in the same way like it's done for normal dataflow. In this case, we should not interrupt the normal analysis.

GitOrigin-RevId: 08d7b4857896ca4c930759f21fe2b189254d52b3
2020-06-11 12:40:54 +03:00

19 lines
361 B
Java

import java.util.List;
class Y {
void test(List<String> list) {
Runnable r = () -> list.forEach(e -> {
class X {
final String s;
X() {
s = "foo";
}
void test() {
if (<warning descr="Condition 's == null' is always 'false'">s == null</warning>) {}
}
}
});
}
}