Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recommend Optional::orElseThrow instead of get #147

Closed
gaul opened this issue Mar 29, 2022 · 0 comments · Fixed by #156
Closed

Recommend Optional::orElseThrow instead of get #147

gaul opened this issue Mar 29, 2022 · 0 comments · Fixed by #156

Comments

@gaul
Copy link
Owner

gaul commented Mar 29, 2022

Java 10 recommends orElseThrow instead of get:

https://docs.oracle.com/javase/10/docs/api/java/util/Optional.html#get()

Some background:

http://mail.openjdk.java.net/pipermail/core-libs-dev/2016-April/040531.html

gaul added a commit that referenced this issue Dec 1, 2022
Also shuffle Optional imports to java.util.Optional.  Fixes #147.
gaul added a commit that referenced this issue Dec 1, 2022
Also shuffle Optional imports to java.util.Optional.  Fixes #147.
@gaul gaul closed this as completed in #156 Dec 2, 2022
gaul added a commit that referenced this issue Dec 2, 2022
Also shuffle Optional imports to java.util.Optional.  Fixes #147.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant