mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
16 lines
372 B
Java
16 lines
372 B
Java
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
class Npe {
|
|
Object foo(@NotNull Object o) {
|
|
return o;
|
|
}
|
|
|
|
@Nullable Object nullable() {
|
|
return null;
|
|
}
|
|
|
|
void bar() {
|
|
Object o = foo((Object)<warning descr="Argument 'nullable()' might be null">nullable()</warning>); // null should not be passed here.
|
|
}
|
|
} |