mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
26 lines
361 B
Java
26 lines
361 B
Java
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
import java.lang.Object;
|
|
import java.lang.Override;
|
|
|
|
class Super {
|
|
@Nullable Object foo() {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
class Main extends Super {
|
|
@NotNull
|
|
@Override
|
|
Object foo() {
|
|
return 2;
|
|
}
|
|
|
|
void bar(@NotNull Object o) {}
|
|
|
|
void goo() {
|
|
bar(foo());
|
|
}
|
|
|
|
} |