PMD Results

The following document contains the results of PMD 5.6.1.

Files

org/codehaus/plexus/component/repository/ComponentDescriptor.java

Violation Line
Useless parentheses. 245
Useless parentheses. 672
Useless parentheses. 677

org/codehaus/plexus/metadata/ClassComponentDescriptorExtractor.java

Violation Line
Avoid unused local variables such as 'url'. 111

org/codehaus/plexus/metadata/DefaultMetadataGenerator.java

Violation Line
Avoid unused imports such as 'org.codehaus.plexus.metadata.gleaner.AnnotationComponentGleaner' 41

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

Violation Line
Avoid unused method parameters such as 'annClass'. 196
Avoid unused method parameters such as 'cl'. 257
Avoid unused method parameters such as 'c'. 257

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

Violation Line
Avoid empty if statements 137139
Avoid empty if statements 302307
Avoid unused method parameters such as 'tagName'. 503
Avoid unused local variables such as 's'. 505

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

Violation Line
Avoid unused imports such as 'org.jdom2.input.sax.XMLReaderJDOMFactory' 35
Avoid unused imports such as 'org.xml.sax.XMLReader' 38

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

Violation Line
Useless parentheses. 368
Useless parentheses. 422

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

Violation Line
Useless parentheses. 143
Avoid empty if statements 463465
Useless parentheses. 983
Useless parentheses. 984
These nested if statements could be combined 11621165
Avoid unused local variables such as 'name'. 1760
Useless parentheses. 18551857
Useless parentheses. 18801883
Useless parentheses. 18811883
These nested if statements could be combined 19291931
Avoid unused local variables such as 'prefix'. 1949
Useless parentheses. 2122
Useless parentheses. 21232125
Useless parentheses. 2443
These nested if statements could be combined 24442469
Useless parentheses. 2598
Avoid unused local variables such as 'standaloneStart'. 2675
These nested if statements could be combined 28222832
These nested if statements could be combined 28232831
These nested if statements could be combined 28982900
Useless parentheses. 3132
Useless parentheses. 3133
Useless parentheses. 3134
Useless parentheses. 3135
Useless parentheses. 3166
Useless parentheses. 3167
Useless parentheses. 3168
Useless parentheses. 3169
Useless parentheses. 3188

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

Violation Line
Useless parentheses. 192

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

Violation Line
Useless parentheses. 58

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

Violation Line
Overriding method merely calls super 5054