Optional.or() doesn't use a wildcard in its signature (original) (raw)
Remi Forax forax at univ-mlv.fr
Sat Oct 31 18:57:41 UTC 2015
- Previous message: Optional.or() doesn't use a wildcard in its signature
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hum, it's quite embarrassing, you're right :)
In fact, it's more than that because i now remember that Paul already answer that to me :(
Thanks, Stefan. (I like your email address BTW)
----- Mail original -----
De: "Stefan Zobel" <spliterator at gmail.com> À: "core-libs-dev at openjdk.java.net Libs" <core-libs-dev at openjdk.java.net> Envoyé: Samedi 31 Octobre 2015 19:21:22 Objet: Re: Optional.or() doesn't use a wildcard in its signature
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 or(Supplier<Optional> supplier) { > instead of > public Optional or(Supplier<? extends Optional> supplier) { > > regards, > Rémi >
I don't get it. Optional is final anyway. Can you explain? Thanks, Stefan
- Previous message: Optional.or() doesn't use a wildcard in its signature
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]