dfa live var analysis should honor variables read in closures (IDEA-131719)

This commit is contained in:
peter
2014-10-22 14:06:25 +02:00
parent 3b281d3e7e
commit 9821cbab03
5 changed files with 111 additions and 51 deletions
@@ -0,0 +1,19 @@
import org.jetbrains.annotations.Nullable;
class Foo {
void foo(final @Nullable String s, String s2) {
if (s2 == null) return;
if (s == null) return;
System.out.println(s2);
new Runnable() {
@Override
public void run() {
s.hashCode();
}
}.run();
}
}