-
Notifications
You must be signed in to change notification settings - Fork 578
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 RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE and NP_LOAD_OF_KNOWN_NULL_VALUE when using empty try-with-resources #647
Comments
I have this same problem with SpotBugs 3.1.12. |
@nmatt better to have a test case that reproduce this issue. Check our contribution guide for detail. |
In my project, the 4.1.3 release fixed all Can you verify whether these two are false positives? |
@KengoTODA |
The preceding code produces 2 false positives:
-RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE
-NP_LOAD_OF_KNOWN_NULL_VALUE
Using jdk 1.8.0_172, spotbugs version 3.1.3
The text was updated successfully, but these errors were encountered: