mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
dfa live var analysis should honor variables read in closures (IDEA-131719)
This commit is contained in:
+19
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user