mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 16:36:56 +07:00
14 lines
244 B
Java
14 lines
244 B
Java
import org.jetbrains.annotations.NotNull;
|
|
|
|
class X {
|
|
void foo(@NotNull Object o) { }
|
|
}
|
|
|
|
class Y extends X {
|
|
@Override
|
|
void foo(Object o) {
|
|
if (o == null) {
|
|
System.out.println("null is allowed");
|
|
}
|
|
}
|
|
} |