mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-17 21:15:58 +07:00
17 lines
372 B
Java
17 lines
372 B
Java
class IsNotNullCheck {
|
|
void bar() {
|
|
final Value v = call();
|
|
if (Value.isNotNull(v)) {
|
|
if(<warning descr="Condition 'v == null' is always 'false'">v == null</warning>) {}
|
|
}
|
|
}
|
|
void bar2() {
|
|
final Value v = call();
|
|
System.out.println(v.hashCode());
|
|
if (Value.isNotNull(v)) {
|
|
|
|
}
|
|
}
|
|
Value call() {return new Value();}
|
|
}
|