-
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
4.8.0 PI_DO_NOT_REUSE_PUBLIC_IDENTIFIERS_CLASS_NAMES False positives #2627
Comments
Can you please provide a minimal, complete and verifiable example? |
This is the class it is complaining about as far as I can see:
|
We see also LOT of such meaningless warnings reported, also with broken |
I also can confirm that this happens at different places: |
That detector is looking for every single class name in the entire JDK. Also the detector reports the name of the top-level class when finding a problem with an inner class (it reports LineRangeList instead of Cursor here: https://github.com/uhafner/codingstyle/blob/main/src/main/java/edu/hm/hafner/util/LineRangeList.java) |
This detector false positives rate is nearly 99%. |
due to the high false positives rate, see spotbugs/spotbugs#2627
due to the high false positives rate, see spotbugs/spotbugs#2627
Note, there are actually two issues:
|
Thank you for letting me know about the issues. I'll investigate to find out what's causing the detector problems. As for the strange messages, I think I know the cause of the problem. |
Can we roll out a new release? |
AFAIK it's planned soon. Here is the discussion about it: #2674 |
Upgrading to 4.8.0 I get a lot of what I believe are false positives like:
Where SomeException is a custom exception subclass.
And the class name and source in the message are weird characters instead of the actual class name and source (which is shown in the details)
The text was updated successfully, but these errors were encountered: