mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
let IsNullCheck mean null->true, the former !null->false meaning was useless
This commit is contained in:
@@ -2,8 +2,9 @@ public class IsNullCheck {
|
||||
void bar() {
|
||||
final Value v = call();
|
||||
if (Value.isNull(v)) {
|
||||
if(<warning descr="Condition 'v == null' is always 'true'">v == null</warning>) {}
|
||||
return;
|
||||
}
|
||||
if(<warning descr="Condition 'v == null' is always 'false'">v == null</warning>) {}
|
||||
}
|
||||
Value call() {return new Value();}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user