PMD Results

The following document contains the results of PMD 7.0.0.

Violations By Priority

Priority 2

org/codehaus/plexus/util/xml/pull/MXSerializer.java
Rule Violation Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 527

Priority 3

org/codehaus/plexus/util/xml/XmlReader.java
Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 349358
UnusedFormalParameter Avoid unused method parameters such as 'lenient'. 398
org/codehaus/plexus/util/xml/Xpp3DomBuilder.java
Rule Violation Line
UnusedLocalVariable Avoid unused local variables such as 'closeMe'. 51
UnusedLocalVariable Avoid unused local variables such as 'closeMe'. 65
org/codehaus/plexus/util/xml/pull/MXParser.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'fileEncoding'. 117
UnnecessaryModifier Unnecessary modifier 'final' on method 'fastHash': private methods cannot be overridden 283
CollapsibleIfStatements This if statement could be combined with its parent 11931196
UnusedLocalVariable Avoid unused local variables such as 'name'. 1773
CollapsibleIfStatements This if statement could be combined with its parent 19291933
UnusedLocalVariable Avoid unused local variables such as 'prefix'. 1953
CollapsibleIfStatements This if statement could be combined with its parent 25282552
CollapsibleIfStatements This if statement could be combined with its parent 29562966
CollapsibleIfStatements This if statement could be combined with its parent 29572965
CollapsibleIfStatements This if statement could be combined with its parent 30333035
UnnecessaryReturn Unnecessary return statement 3100
org/codehaus/plexus/util/xml/pull/MXSerializer.java
Rule Violation Line
EmptyControlStatement Empty if statement 943956
EmptyControlStatement Empty if statement 10041029
UnusedLocalVariable Avoid unused local variables such as 'ch'. 1047

Priority 4

org/codehaus/plexus/util/xml/StringUtils.java
Rule Violation Line
UselessParentheses Useless parentheses. 103
UselessParentheses Useless parentheses. 103
org/codehaus/plexus/util/xml/XmlReader.java
Rule Violation Line
UselessParentheses Useless parentheses. 541
org/codehaus/plexus/util/xml/Xpp3Dom.java
Rule Violation Line
UselessParentheses Useless parentheses. 395
UselessParentheses Useless parentheses. 399
org/codehaus/plexus/util/xml/Xpp3DomUtils.java
Rule Violation Line
UselessParentheses Useless parentheses. 132
UselessParentheses Useless parentheses. 140
org/codehaus/plexus/util/xml/pull/MXParser.java
Rule Violation Line
UselessParentheses Useless parentheses. 74
UselessParentheses Useless parentheses. 1020
UselessParentheses Useless parentheses. 1043
UselessParentheses Useless parentheses. 1690
UselessParentheses Useless parentheses. 1765
UselessParentheses Useless parentheses. 18791882
UselessParentheses Useless parentheses. 2158
UselessParentheses Useless parentheses. 2165
UselessParentheses Useless parentheses. 2168
UselessParentheses Useless parentheses. 2171
UselessParentheses Useless parentheses. 2184
UselessParentheses Useless parentheses. 2239
UselessParentheses Useless parentheses. 3331

Files

org/codehaus/plexus/util/xml/StringUtils.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 103
UselessParentheses Useless parentheses. 4 103

org/codehaus/plexus/util/xml/XmlReader.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 349358
UnusedFormalParameter Avoid unused method parameters such as 'lenient'. 3 398
UselessParentheses Useless parentheses. 4 541

org/codehaus/plexus/util/xml/Xpp3Dom.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 395
UselessParentheses Useless parentheses. 4 399

org/codehaus/plexus/util/xml/Xpp3DomBuilder.java

Rule Violation Priority Line
UnusedLocalVariable Avoid unused local variables such as 'closeMe'. 3 51
UnusedLocalVariable Avoid unused local variables such as 'closeMe'. 3 65

org/codehaus/plexus/util/xml/Xpp3DomUtils.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 132
UselessParentheses Useless parentheses. 4 140

org/codehaus/plexus/util/xml/pull/MXParser.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 74
UnusedPrivateField Avoid unused private fields such as 'fileEncoding'. 3 117
UnnecessaryModifier Unnecessary modifier 'final' on method 'fastHash': private methods cannot be overridden 3 283
UselessParentheses Useless parentheses. 4 1020
UselessParentheses Useless parentheses. 4 1043
CollapsibleIfStatements This if statement could be combined with its parent 3 11931196
UselessParentheses Useless parentheses. 4 1690
UselessParentheses Useless parentheses. 4 1765
UnusedLocalVariable Avoid unused local variables such as 'name'. 3 1773
UselessParentheses Useless parentheses. 4 18791882
CollapsibleIfStatements This if statement could be combined with its parent 3 19291933
UnusedLocalVariable Avoid unused local variables such as 'prefix'. 3 1953
UselessParentheses Useless parentheses. 4 2158
UselessParentheses Useless parentheses. 4 2165
UselessParentheses Useless parentheses. 4 2168
UselessParentheses Useless parentheses. 4 2171
UselessParentheses Useless parentheses. 4 2184
UselessParentheses Useless parentheses. 4 2239
CollapsibleIfStatements This if statement could be combined with its parent 3 25282552
CollapsibleIfStatements This if statement could be combined with its parent 3 29562966
CollapsibleIfStatements This if statement could be combined with its parent 3 29572965
CollapsibleIfStatements This if statement could be combined with its parent 3 30333035
UnnecessaryReturn Unnecessary return statement 3 3100
UselessParentheses Useless parentheses. 4 3331

org/codehaus/plexus/util/xml/pull/MXSerializer.java

Rule Violation Priority Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 2 527
EmptyControlStatement Empty if statement 3 943956
EmptyControlStatement Empty if statement 3 10041029
UnusedLocalVariable Avoid unused local variables such as 'ch'. 3 1047