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

Why does ThrowingFunction::lift not call Optional.ofNullable? #18

Closed
bencope opened this issue Aug 15, 2016 · 2 comments
Closed

Why does ThrowingFunction::lift not call Optional.ofNullable? #18

bencope opened this issue Aug 15, 2016 · 2 comments

Comments

@bencope
Copy link

bencope commented Aug 15, 2016

just a question, as above

@pivovarit
Copy link
Owner

Well, it could, but the result will be exactly the same, because Optional.of() will raise an exception that will be caught and translated into Optional.empty instance. Cheers!

@bencope
Copy link
Author

bencope commented Aug 15, 2016

Doh!

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

No branches or pull requests

2 participants