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
When I write
public static void doSomething(@Nullable String text) { return Set.of("a", "b", "c").stream().anyMatch(text::contains); }
I receive no complains from NullAway although invoking the method reference will lead to a NPE.
If I replace the method reference by a lambda:
public static void doSomething(@Nullable String text) { return Set.of("a", "b", "c").stream().anyMatch(s -> text.contains(s)); }
I receive (and I expect this):
java: [NullAway] dereferenced expression text is @Nullable (see http://t.uber.com/nullaway )
I am using version 0.10.23.
The text was updated successfully, but these errors were encountered:
Great find! I will work on this as soon as I can and get a fix up.
Sorry, something went wrong.
Check dereference of qualifier expression in method reference (#920)
a7bb7d3
Fixes #919
Successfully merging a pull request may close this issue.
When I write
I receive no complains from NullAway although invoking the method reference will lead to a NPE.
If I replace the method reference by a lambda:
I receive (and I expect this):
I am using version 0.10.23.
The text was updated successfully, but these errors were encountered: