You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[java] UnusedPrivateMethod: False positive with raw type for generic method #6028
changed the title [-]Rule:UnusedPrivateMethod Priority:3 Avoid unused private methods such as 'addAllImpl[/-][+][java] UnusedPrivateMethod FP with raw type for generic method[/+]on Sep 1, 2025
changed the title [-][java] UnusedPrivateMethod FP with raw type for generic method[/-][+][java] UnusedPrivateMethod: False positive with raw type for generic method[/+]on Dec 19, 2025
Activity
UncleOwen commentedon Aug 31, 2025
Your issues are extremely difficult to read. Please
Pankraz76 commentedon Aug 31, 2025
its just the template, right?
updated the test data
UncleOwen commentedon Aug 31, 2025
If you want unreadable issues, it's "just" the template. Otherwise, it's a helpful tool to structure information.
Pankraz76 commentedon Sep 1, 2025
yes you right, sorry.
Actually provided key information which is the recipe name and the test code thats all needed to reproduce.
Anything else is considered obsolete from my point of view.
zbynek commentedon Sep 1, 2025
The testcase can be simplified by removing the imports:
Looks like overload resolution is not working well in a particular case involving generics.
oowekyala commentedon Sep 1, 2025
Yes this looks like it's related to raw types. Maybe related to #5097
[-]Rule:UnusedPrivateMethod Priority:3 Avoid unused private methods such as 'addAllImpl[/-][+][java] UnusedPrivateMethod FP with raw type for generic method[/+]Fix pmd#6028 - specificity bug
Fix pmd#6028 - specificity bug
[-][java] UnusedPrivateMethod FP with raw type for generic method[/-][+][java] UnusedPrivateMethod: False positive with raw type for generic method[/+][doc] Update release notes (#6028, #6294)
[java] Fix #6028: UnusedPrivateMethod FP (#6294)
RM-37163: CPD 7.21.0 upgrade (#8)