Closed GoogleCodeExporter closed 9 years ago
Hi,
As written there is no bug because the declared return type Optional<String> is
defaulted to @NonNull Optional<@NonNull String>, and the type returned from
Optional.ofNullable is Option<@Nullable String>.
However, if you changing the return type to Optional<@Nullable String> reveals
that Optional class does not yet have the correct api annotations in the
checker framework (so you will get a different error). I am working on adding
the api annotations for the Optional class. This should go out in our release
next week, and pushed to the repo sometime before then.
Thanks for your interest!
Original comment by mcart...@cs.washington.edu
on 21 Nov 2014 at 3:12
This issue was closed by revision 28e0256c8b1b.
Original comment by mcart...@cs.washington.edu
on 24 Nov 2014 at 6:31
Original comment by mcart...@cs.washington.edu
on 24 Nov 2014 at 6:32
Original comment by mcart...@cs.washington.edu
on 26 Nov 2014 at 8:58
Original issue reported on code.google.com by
ClovisSe...@gmail.com
on 28 Sep 2014 at 9:24