PMD Results

The following document contains the results of PMD 5.3.5.

Files

org/apache/maven/shared/utils/Os.java

Violation Line
Useless parentheses. 324327

org/apache/maven/shared/utils/PathTool.java

Violation Line
Useless parentheses. 156
Useless parentheses. 157
Useless parentheses. 164
Useless parentheses. 165

org/apache/maven/shared/utils/PropertyUtils.java

Violation Line
Unnecessary use of fully qualified name 'java.util.Properties' due to existing import 'java.util.Properties' 58

org/apache/maven/shared/utils/StringUtils.java

Violation Line
Useless parentheses. 133
Useless parentheses. 133
Useless parentheses. 133
Useless parentheses. 149
Useless parentheses. 149
Useless parentheses. 149
Useless parentheses. 260
Useless parentheses. 260
Useless parentheses. 297
Useless parentheses. 297
Useless parentheses. 426
Useless parentheses. 426
Useless parentheses. 454
Useless parentheses. 454
Useless parentheses. 480
Useless parentheses. 480
Useless parentheses. 480
Useless parentheses. 480
Useless parentheses. 563
Useless parentheses. 563
Useless parentheses. 574
Useless parentheses. 574
Useless parentheses. 770
Useless parentheses. 770
Useless parentheses. 770
Useless parentheses. 770
These nested if statements could be combined 10311034
Useless parentheses. 1314
Useless parentheses. 1314
Useless parentheses. 1347
Useless parentheses. 1354
Useless parentheses. 1354
Useless parentheses. 1385
Useless parentheses. 1392
Useless parentheses. 1392
Useless parentheses. 1762
Useless parentheses. 1790
Useless parentheses. 1790
Useless parentheses. 1845
Useless parentheses. 1845
Useless parentheses. 2081
Useless parentheses. 2081
Useless parentheses. 2088
Useless parentheses. 2088
Useless parentheses. 2225

org/apache/maven/shared/utils/cli/CommandLineUtils.java

Violation Line
Useless parentheses. 298
Dont call Thread.run() explicitly, use Thread.start() 399
Useless parentheses. 470
Useless parentheses. 470
Useless parentheses. 540
Useless parentheses. 540
Useless parentheses. 555
Useless parentheses. 555

org/apache/maven/shared/utils/cli/Commandline.java

Violation Line
Useless parentheses. 107
Useless parentheses. 107
Useless parentheses. 327
These nested if statements could be combined 330337

org/apache/maven/shared/utils/cli/shell/BourneShell.java

Violation Line
Useless parentheses. 69
Useless parentheses. 88

org/apache/maven/shared/utils/cli/shell/Shell.java

Violation Line
Useless parentheses. 106
Useless parentheses. 328
Useless parentheses. 328

org/apache/maven/shared/utils/introspection/MethodMap.java

Violation Line
Useless parentheses. 453

org/apache/maven/shared/utils/io/DirectoryWalker.java

Violation Line
Useless parentheses. 93

org/apache/maven/shared/utils/io/FileUtils.java

Violation Line
Avoid unused private fields such as 'ONE_GB'. 112
Useless parentheses. 1090
Useless parentheses. 1133

org/apache/maven/shared/utils/io/SelectorUtils.java

Violation Line
Avoid using a branching statement as the last in a loop. 341
Avoid using a branching statement as the last in a loop. 529
These nested if statements could be combined 565569
Avoid using a branching statement as the last in a loop. 771

org/apache/maven/shared/utils/logging/MessageUtils.java

Violation Line
These nested if statements could be combined 8595

org/apache/maven/shared/utils/xml/XMLEncode.java

Violation Line
Useless parentheses. 289
Useless parentheses. 302

org/apache/maven/shared/utils/xml/Xpp3Dom.java

Violation Line
Avoid unused private fields such as 'DEFAULT_CHILDREN_COMBINATION_MODE'. 68
Avoid unused private fields such as 'DEFAULT_SELF_COMBINATION_MODE'. 86
Avoid unused private methods such as 'merge(Xpp3Dom,Xpp3Dom,Boolean)'. 318

org/apache/maven/shared/utils/xml/Xpp3DomBuilder.java

Violation Line
Useless parentheses. 236
Useless parentheses. 315