mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +07:00
IDEA-64875 "Constant conditions and exceptions" should eliminate false positives by analyzing static final constants
This commit is contained in:
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user