We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Optional#map coerces nulls to empty, so it's redundant to say Optional.flatMap(v -> Optional.ofNullable(fn(v))).
Optional#map
Optional.flatMap(v -> Optional.ofNullable(fn(v)))
Errorprone should tell me to write Optional.map(fn).
Optional.map(fn)
The text was updated successfully, but these errors were encountered:
I like it, great idea
Sorry, something went wrong.
fix #1326: Implement new OptionalFlatmapOfNullable check
2e69625
e65745a
cfaa2cc
625eaa8
No branches or pull requests
What happened?
Optional#map
coerces nulls to empty, so it's redundant to sayOptional.flatMap(v -> Optional.ofNullable(fn(v)))
.What did you want to happen?
Errorprone should tell me to write
Optional.map(fn)
.The text was updated successfully, but these errors were encountered: