mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
IDEA-175296 Uncaught 'condition is always false' with interface constant
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
interface I {
|
||||
Object CONST = new Object();
|
||||
}
|
||||
|
||||
class C {
|
||||
void foo(Object o) {
|
||||
if (o == I.CONST) return;
|
||||
if (<warning descr="Condition 'o != I.CONST' is always 'true'">o != I.CONST</warning>) return;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user