mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
IDEA-97017 Constant condition and expression does not recognize previous statments in anonymous inner class
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
class Zoo2 {
|
||||
|
||||
void foo(@Nullable Object foo) {
|
||||
if (foo == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
new Runnable() {
|
||||
int hc = foo.hashCode();
|
||||
|
||||
public void run() {
|
||||
}
|
||||
}.run();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user