Код: Выделить всё
public static @Nonnull Maybe something(final @Nonnull TG value) {
return new Maybe(value);
}
Код: Выделить всё
public @Nonnull Maybe visit() {
return Maybe.something(new BarExtendsFoo());
}
Код: Выделить всё
found : BarExtendsFoo
Подробнее здесь: https://stackoverflow.com/questions/204 ... se-compile