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
False positive: parameter must be non-null in inner class constructor #772
Milestone
Comments
Pull request with reproducer for this issue: #773 (Not sure if this is the correct way to write test cases for issues, so please have a look) I detected this bug by using sonar-findbugs and opened an issue there that is caused by this one: spotbugs/sonar-findbugs#213 |
@ahubold Thanks for your nice report and reproduction! I've fixed it, we'll release patched version in the next January. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Spotbugs 3.1.6 shows an issue for rule findbugs:NP_PARAMETER_MUST_BE_NONNULL_BUT_MARKED_AS_NULLABLE that an inner class constructor parameter must be non-null, even if the parameter is already annotated as NonNull. Code example:
The text was updated successfully, but these errors were encountered: