-
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 for JUnit 5 Method Source: UPM_UNCALLED_PRIVATE_METHOD #2379
Comments
Thanks for opening your first issue here! 😃 |
I think that this one is a bit outside of the scope of the SpotBugs project. |
…ethods (#2679) * test: sample reproducing issue #2379 * test: fake JUnit library annotation for tests * fix for issue #2379: look for methods used through @MethodSource * test: replaced fake library by a direct dependency * Made requested changes * Handle the cases for zero or several source methods * Moved changelog item since it was not incorporated in 4.8.1 * test: added the bug type when checking for the overall count of bugs
This should be fixed by #2679 |
@gtoison I have upgraded to Spotbugs Annotations 4.8.1 and SpotBugs Maven plugin 4.8.1.0. I am still getting the uncalled private method issue. I even copy and pasted |
Oh, I guess you haven't released the changes yet, I see that now in the changelog |
That's right, it's going to be in the next release |
@salbracco24 If I was a betting man, I would say we release again in a week here. Seems we still had a few issues from the 4.8.0 release we are working through that 4.8.1 didn't completely solve. Goes to show waiting a year to release has far too much impact :( Give us a week anyways so we can fix up any other items that come in between now and then so we are not blowing through releases too quickly here. At this point I don't think we will ever again see years between releases so long we all stay very engaged :) |
Thanks for the update! I'll keep an eye out |
Confirmed, this bug is no longer present in SpotBugs 4.8.2. Thanks!! |
Spotbugs reports that the method vulnerabilities() is unused, but it is used as a MethodSource for this JUnit 5 test.
To reproduce, follow this guide and make a parametrized unit test
The text was updated successfully, but these errors were encountered: