IDEA-97017 Constant condition and expression does not recognize previous statments in anonymous inner class

This commit is contained in:
peter
2012-12-18 18:25:30 +01:00
parent 2031efc332
commit ea73902b92
3 changed files with 32 additions and 15 deletions
@@ -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();
}
}