Optional.or() doesn't use a wildcard in its signature
Stefan Zobel
spliterator at gmail.com
Sat Oct 31 18:21:22 UTC 2015
2015-10-31 19:11 GMT+01:00 Remi Forax <forax at univ-mlv.fr>:
> Hi all, hi Paul,
>
> I've just seen that Optional.or is declared as
> public Optional<T> or(Supplier<Optional<T>> supplier) {
> instead of
> public Optional<T> or(Supplier<? extends Optional<T>> supplier) {
>
> regards,
> Rémi
>
I don't get it. Optional is final anyway. Can you explain?
Thanks,
Stefan
More information about the core-libs-dev
mailing list