mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-08 10:58:45 +07:00
12 lines
278 B
Java
12 lines
278 B
Java
import org.jetbrains.annotations.NotNull;
|
|
|
|
class Npe {
|
|
@NotNull Object foo() {
|
|
return new Object();
|
|
}
|
|
|
|
void bar() {
|
|
Object o = foo();
|
|
if (<warning descr="Condition 'o == null' is always 'false'">o == null</warning>) System.out.println("Can't be");
|
|
}
|
|
} |