PMD Results

The following document contains the results of PMD 7.7.0.

Violations By Priority

Priority 3

org/apache/maven/plugin/doap/DoapMojo.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 653662
UnusedFormalParameter Avoid unused method parameters such as 'project'. 904
UnusedFormalParameter Avoid unused method parameters such as 'project'. 984
UnusedPrivateMethod Avoid unused private methods such as 'sortContributors(List)'. 2146

org/apache/maven/plugin/doap/DoapUtil.java

Rule Violation Line
EmptyControlStatement Empty try-with-resources statement. Rename the resource to `ignored`, `unused` or `_` (Java 22+). 478
UnusedLocalVariable Avoid unused local variables such as 'in'. 478
EmptyControlStatement Empty if statement 654660

Priority 4

org/apache/maven/plugin/doap/DoapMojo.java

Rule Violation Line
UselessParentheses Useless parentheses. 1643
UselessParentheses Useless parentheses. 1644

Files

org/apache/maven/plugin/doap/DoapMojo.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 653662
UnusedFormalParameter Avoid unused method parameters such as 'project'. 3 904
UnusedFormalParameter Avoid unused method parameters such as 'project'. 3 984
UselessParentheses Useless parentheses. 4 1643
UselessParentheses Useless parentheses. 4 1644
UnusedPrivateMethod Avoid unused private methods such as 'sortContributors(List)'. 3 2146

org/apache/maven/plugin/doap/DoapUtil.java

Rule Violation Priority Line
EmptyControlStatement Empty try-with-resources statement. Rename the resource to `ignored`, `unused` or `_` (Java 22+). 3 478
UnusedLocalVariable Avoid unused local variables such as 'in'. 3 478
EmptyControlStatement Empty if statement 3 654660