IDEA-64875 "Constant conditions and exceptions" should eliminate false positives by analyzing static final constants

This commit is contained in:
peter
2012-09-07 19:08:42 +02:00
parent aba62f142b
commit d0efe00076
3 changed files with 18 additions and 4 deletions
@@ -0,0 +1,10 @@
import org.jetbrains.annotations.*;
class Class1 {
public void f(@Nullable Object o) {
o = o != null ? o : Class2.O;
o.toString();
}
}
class Class2 {
static final Object O = new Object();
}