-
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
UWF_NULL_FIELD doesn't report line number #1368
Comments
Thanks for opening your first issue here! 😃 |
lolgab
changed the title
UWF_NULL_FIELD doesn't report
UWF_NULL_FIELD doesn't report line number
Nov 10, 2020
KengoTODA
added a commit
that referenced
this issue
Feb 10, 2021
KengoTODA
added a commit
that referenced
this issue
Feb 11, 2021
* test: reproduce the reported issue by JUnit * fix: report line number with UWF_NULL_FIELD bug instance close #1368 * build: ignore problems detected by SpotBugs in spotbugs-tests project * fix: do not clear data.fieldAccess when field is read The data is still necessary for `UWF_NULL_FIELD` bug pattern. This change increases memory footprint, then make sure the data is cleared when the detector finishes computation.
This was referenced Mar 8, 2021
This was referenced Mar 15, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi :)
Thank you for this wonderful tool :)
We noticed at @codacy that the rule
UWF_NULL_FIELD
doesn't report any line number.We're using Spotbugs API to get results line numbers using
bugInstance.getPrimarySourceLineAnnotation.getStartLine
For this rule it reports
-1
The text was updated successfully, but these errors were encountered: