mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-08 01:34:55 +07:00
11 lines
281 B
Java
11 lines
281 B
Java
import org.jetbrains.annotations.NotNull;
|
|
|
|
class Npe {
|
|
Object foo(@NotNull Object o) {
|
|
return o;
|
|
}
|
|
|
|
void bar() {
|
|
Object o = foo(<warning descr="Passing 'null' argument to parameter annotated as @NotNull">null</warning>); // null should not be passed here.
|
|
}
|
|
} |