Affects PMD Version:
7.3.0
Rule:
Please provide the rule name and a link to the rule documentation:
https://pmd.github.io/pmd/pmd_rules_java_bestpractices.html#unusedprivatemethod
Description:
False positive for private method used by lambda and recursivly by itself.
Removing the ternary operator for dao access, replacing the collect on the dao results or removing the recursive calls all remove the false positive.
Code Sample demonstrating the issue:
https://github.com/schosin/pmd-unused-private-method-false-positive
Expected outcome:
PMD reports a violation for method falsePositive
, but that's wrong. That's a false positive.
Running PMD through: Maven
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4