PMD Results

The following document contains the results of PMD 6.55.0.

Violations By Priority

Priority 3

org/codehaus/plexus/metadata/ClassComponentDescriptorExtractor.java
Rule Violation Line
UnusedLocalVariable Avoid unused local variables such as 'url'. 94
EmptyControlStatement Empty for statement 9496
org/codehaus/plexus/metadata/gleaner/AnnotationComponentGleaner.java
Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'annClass'. 177
UnusedFormalParameter Avoid unused method parameters such as 'c'. 235
UnusedFormalParameter Avoid unused method parameters such as 'cl'. 235
org/codehaus/plexus/metadata/gleaner/QDoxComponentGleaner.java
Rule Violation Line
EmptyControlStatement Empty if statement 127129
EmptyControlStatement Empty if statement 283288
UnusedFormalParameter Avoid unused method parameters such as 'tagName'. 478
UnusedLocalVariable Avoid unused local variables such as 's'. 479
EmptyControlStatement Empty for statement 479481
org/codehaus/plexus/metadata/merge/Driver.java
Rule Violation Line
UnnecessarySemicolon Unnecessary semicolon 58
EmptyControlStatement Empty if statement 203208
org/codehaus/plexus/metadata/merge/MXParser.java
Rule Violation Line
EmptyControlStatement Empty if statement 447451
CollapsibleIfStatements These nested if statements could be combined 10761079
UnusedLocalVariable Avoid unused local variables such as 'name'. 1661
CollapsibleIfStatements These nested if statements could be combined 18181822
UnusedLocalVariable Avoid unused local variables such as 'prefix'. 1842
CollapsibleIfStatements These nested if statements could be combined 23202342
UnusedLocalVariable Avoid unused local variables such as 'standaloneStart'. 2553
CollapsibleIfStatements These nested if statements could be combined 26762686
CollapsibleIfStatements These nested if statements could be combined 26772685
CollapsibleIfStatements These nested if statements could be combined 27532755
UnnecessaryModifier Unnecessary modifier 'final' on method 'setName': private methods cannot be overridden 29622966
UnnecessaryModifier Unnecessary modifier 'final' on method 'setNameStart': private methods cannot be overridden 29682973
org/codehaus/plexus/metadata/merge/support/RequirementElement.java
Rule Violation Line
UselessOverridingMethod Overriding method merely calls super 4648

Priority 4

org/codehaus/plexus/metadata/merge/Driver.java
Rule Violation Line
UselessParentheses Useless parentheses. 368
UselessParentheses Useless parentheses. 412
org/codehaus/plexus/metadata/merge/MXParser.java
Rule Violation Line
UselessParentheses Useless parentheses. 136
UselessParentheses Useless parentheses. 908
UselessParentheses Useless parentheses. 909
UselessParentheses Useless parentheses. 17471749
UselessParentheses Useless parentheses. 17681771
UselessParentheses Useless parentheses. 17691771
UselessParentheses Useless parentheses. 2012
UselessParentheses Useless parentheses. 20132016
UselessParentheses Useless parentheses. 2319
UselessParentheses Useless parentheses. 2473
UselessParentheses Useless parentheses. 2993
UselessParentheses Useless parentheses. 2994
UselessParentheses Useless parentheses. 2995
UselessParentheses Useless parentheses. 2996
UselessParentheses Useless parentheses. 3025
UselessParentheses Useless parentheses. 3026
UselessParentheses Useless parentheses. 3027
UselessParentheses Useless parentheses. 3028
UselessParentheses Useless parentheses. 3046
org/codehaus/plexus/metadata/merge/support/AbstractMergeableElementList.java
Rule Violation Line
UselessParentheses Useless parentheses. 178
org/codehaus/plexus/metadata/merge/support/ComponentsElement.java
Rule Violation Line
UselessParentheses Useless parentheses. 52

Files

org/codehaus/plexus/metadata/ClassComponentDescriptorExtractor.java

Rule Violation Priority Line
UnusedLocalVariable Avoid unused local variables such as 'url'. 3 94
EmptyControlStatement Empty for statement 3 9496

org/codehaus/plexus/metadata/gleaner/AnnotationComponentGleaner.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused method parameters such as 'annClass'. 3 177
UnusedFormalParameter Avoid unused method parameters such as 'c'. 3 235
UnusedFormalParameter Avoid unused method parameters such as 'cl'. 3 235

org/codehaus/plexus/metadata/gleaner/QDoxComponentGleaner.java

Rule Violation Priority Line
EmptyControlStatement Empty if statement 3 127129
EmptyControlStatement Empty if statement 3 283288
UnusedFormalParameter Avoid unused method parameters such as 'tagName'. 3 478
UnusedLocalVariable Avoid unused local variables such as 's'. 3 479
EmptyControlStatement Empty for statement 3 479481

org/codehaus/plexus/metadata/merge/Driver.java

Rule Violation Priority Line
UnnecessarySemicolon Unnecessary semicolon 3 58
EmptyControlStatement Empty if statement 3 203208
UselessParentheses Useless parentheses. 4 368
UselessParentheses Useless parentheses. 4 412

org/codehaus/plexus/metadata/merge/MXParser.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 136
EmptyControlStatement Empty if statement 3 447451
UselessParentheses Useless parentheses. 4 908
UselessParentheses Useless parentheses. 4 909
CollapsibleIfStatements These nested if statements could be combined 3 10761079
UnusedLocalVariable Avoid unused local variables such as 'name'. 3 1661
UselessParentheses Useless parentheses. 4 17471749
UselessParentheses Useless parentheses. 4 17681771
UselessParentheses Useless parentheses. 4 17691771
CollapsibleIfStatements These nested if statements could be combined 3 18181822
UnusedLocalVariable Avoid unused local variables such as 'prefix'. 3 1842
UselessParentheses Useless parentheses. 4 2012
UselessParentheses Useless parentheses. 4 20132016
UselessParentheses Useless parentheses. 4 2319
CollapsibleIfStatements These nested if statements could be combined 3 23202342
UselessParentheses Useless parentheses. 4 2473
UnusedLocalVariable Avoid unused local variables such as 'standaloneStart'. 3 2553
CollapsibleIfStatements These nested if statements could be combined 3 26762686
CollapsibleIfStatements These nested if statements could be combined 3 26772685
CollapsibleIfStatements These nested if statements could be combined 3 27532755
UnnecessaryModifier Unnecessary modifier 'final' on method 'setName': private methods cannot be overridden 3 29622966
UnnecessaryModifier Unnecessary modifier 'final' on method 'setNameStart': private methods cannot be overridden 3 29682973
UselessParentheses Useless parentheses. 4 2993
UselessParentheses Useless parentheses. 4 2994
UselessParentheses Useless parentheses. 4 2995
UselessParentheses Useless parentheses. 4 2996
UselessParentheses Useless parentheses. 4 3025
UselessParentheses Useless parentheses. 4 3026
UselessParentheses Useless parentheses. 4 3027
UselessParentheses Useless parentheses. 4 3028
UselessParentheses Useless parentheses. 4 3046

org/codehaus/plexus/metadata/merge/support/AbstractMergeableElementList.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 178

org/codehaus/plexus/metadata/merge/support/ComponentsElement.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 52

org/codehaus/plexus/metadata/merge/support/RequirementElement.java

Rule Violation Priority Line
UselessOverridingMethod Overriding method merely calls super 3 4648