PMD Results

The following document contains the results of PMD 5.1.2.

Files

org/codehaus/plexus/util/Base64.java

Violation Line
These nested if statements could be combined 327334
These nested if statements could be combined 373377

org/codehaus/plexus/util/CollectionUtils.java

Violation Line
Avoid empty catch blocks 229231
Avoid empty catch blocks 232234

org/codehaus/plexus/util/ExceptionUtils.java

Violation Line
Avoid empty catch blocks 251253
Avoid empty catch blocks 254256
Avoid empty catch blocks 264266
Avoid empty catch blocks 267269
Avoid empty catch blocks 270272
Avoid empty catch blocks 293295
Avoid empty catch blocks 296298
Avoid empty catch blocks 306308
Avoid empty catch blocks 309311
Avoid empty catch blocks 568570
Avoid empty catch blocks 571573
Avoid empty catch blocks 584586
Avoid empty catch blocks 587589

org/codehaus/plexus/util/FileUtils.java

Violation Line
These nested if statements could be combined 16151620

org/codehaus/plexus/util/NioFiles.java

Violation Line
Do not start a literal by 0 unless its an octal value 56
Do not start a literal by 0 unless its an octal value 60
Do not start a literal by 0 unless its an octal value 64
Do not start a literal by 0 unless its an octal value 69
Do not start a literal by 0 unless its an octal value 73
Do not start a literal by 0 unless its an octal value 77
Do not start a literal by 0 unless its an octal value 82
Do not start a literal by 0 unless its an octal value 86
Do not start a literal by 0 unless its an octal value 90

org/codehaus/plexus/util/SelectorUtils.java

Violation Line
Avoid using a branching statement as the last in a loop. 412
Avoid using a branching statement as the last in a loop. 541
Avoid using a branching statement as the last in a loop. 725
These nested if statements could be combined 761765

org/codehaus/plexus/util/StringUtils.java

Violation Line
Avoid unused local variables such as 'sz'. 305
These nested if statements could be combined 11191122
Avoid unused private methods such as 'reverseArray(Object)'. 2117

org/codehaus/plexus/util/cli/CommandLineCallable.java

Violation Line
Avoid modifiers which are implied by the context 2930

org/codehaus/plexus/util/cli/CommandLineUtils.java

Violation Line
Dont call Thread.run() explicitly, use Thread.start() 274

org/codehaus/plexus/util/cli/Commandline.java

Violation Line
Avoid unused imports such as 'java.util.Iterator' 70

org/codehaus/plexus/util/cli/ShutdownHookUtils.java

Violation Line
Avoid empty catch blocks 3638
Avoid empty catch blocks 3941
Avoid empty catch blocks 5153
Avoid empty catch blocks 5456

org/codehaus/plexus/util/cli/StreamConsumer.java

Violation Line
Avoid modifiers which are implied by the context 7576

org/codehaus/plexus/util/introspection/ClassMap.java

Violation Line
Avoid unused local variables such as 'methodKey'. 130

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

Violation Line
These nested if statements could be combined 380393
Avoid unused method parameters such as 'lenient'. 439
Avoid unused private methods such as 'calculateHttpEncoding(String,String,String,String,String,InputStream,boolean)'. 526527

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

Violation Line
Avoid unused local variables such as 'size'. 233

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

Violation Line
Avoid unused private methods such as 'fastHash(char,int,int)'. 84

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

Violation Line
These nested if statements could be combined 13951399
Avoid unused local variables such as 'name'. 2167
These nested if statements could be combined 23802382
Avoid unused local variables such as 'prefix'. 2401
These nested if statements could be combined 30483073
Avoid unused local variables such as 'standaloneStart'. 3296
These nested if statements could be combined 34663481
These nested if statements could be combined 34683480
These nested if statements could be combined 35773580
Avoid unused private methods such as 'toCodePoint(char,char)'. 3979
Avoid unused private methods such as 'isHighSurrogate(char)'. 3992

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

Violation Line
Avoid unused local variables such as 'apos'. 444
Avoid using a branching statement as the last in a loop. 640
Avoid unused local variables such as 'ch'. 1327