Fork me on GitHub

PMD Results

The following document contains the results of PMD 5.3.2.

Files

org/codehaus/mojo/versions/AbstractVersionsDependencyUpdaterMojo.java

Violation Line
These nested if statements could be combined 480487
Useless parentheses. 486

org/codehaus/mojo/versions/AbstractVersionsDisplayMojo.java

Violation Line
These nested if statements could be combined 9295
These nested if statements could be combined 109112

org/codehaus/mojo/versions/AbstractVersionsReportRenderer.java

Violation Line
Unnecessary use of fully qualified name 'org.apache.maven.doxia.sink.Sink' due to existing import 'org.apache.maven.doxia.sink.Sink' 73
Useless parentheses. 114
Useless parentheses. 115
Avoid empty catch blocks 212215
Avoid empty catch blocks 224227
Avoid empty catch blocks 236239
Avoid empty catch blocks 248251
Useless parentheses. 698

org/codehaus/mojo/versions/AbstractVersionsUpdaterMojo.java

Violation Line
Unnecessary use of fully qualified name 'org.apache.maven.artifact.resolver.ArtifactResolver' due to existing import 'org.apache.maven.artifact.resolver.ArtifactResolver' 89

org/codehaus/mojo/versions/CompareDependenciesMojo.java

Violation Line
These nested if statements could be combined 264269

org/codehaus/mojo/versions/DisplayPluginUpdatesMojo.java

Violation Line
These nested if statements could be combined 239251
Avoid empty catch blocks 258261
Avoid empty catch blocks 266269
Avoid empty catch blocks 309312
Avoid empty catch blocks 329332
Avoid empty catch blocks 335338
Useless parentheses. 408
Avoid empty catch blocks 484487
Avoid empty catch blocks 506509
Useless parentheses. 541542
Useless parentheses. 542
Avoid empty catch blocks 756759
These nested if statements could be combined 924931
Avoid empty catch blocks 967970
Avoid empty catch blocks 987990
Avoid empty catch blocks 993996
Avoid empty catch blocks 10451049
Avoid empty catch blocks 10921095
Avoid empty catch blocks 11041107
Avoid empty catch blocks 11211126
Avoid unused method parameters such as 'settings'. 1314
Avoid unused method parameters such as 'localRepository'. 1315
Avoid empty catch blocks 14701473
Avoid empty catch blocks 15051508
Avoid empty catch blocks 15371540
Avoid empty catch blocks 15601563
Avoid empty catch blocks 15841587
Avoid empty catch blocks 15971600
Avoid empty catch blocks 16071610
Avoid empty catch blocks 16171620
These nested if statements could be combined 16561659
Avoid empty catch blocks 17591762
Avoid empty catch blocks 17791782
Avoid empty catch blocks 17851788

org/codehaus/mojo/versions/ForceReleasesMojo.java

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

org/codehaus/mojo/versions/LockSnapshotsMojo.java

Violation Line
These nested if statements could be combined 114118
These nested if statements could be combined 148152

org/codehaus/mojo/versions/RequiredMavenVersionFinder.java

Violation Line
Avoid using a branching statement as the last in a loop. 133

org/codehaus/mojo/versions/SetMojo.java

Violation Line
Useless parentheses. 309
Useless parentheses. 310
Useless parentheses. 410

org/codehaus/mojo/versions/UseDepVersionMojo.java

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

org/codehaus/mojo/versions/UseLatestReleasesMojo.java

Violation Line
Avoid unused imports such as 'java.util.Iterator' 42
These nested if statements could be combined 174180
These nested if statements could be combined 176179

org/codehaus/mojo/versions/UseLatestSnapshotsMojo.java

Violation Line
Avoid unused imports such as 'java.util.Iterator' 40
These nested if statements could be combined 200206
These nested if statements could be combined 202205

org/codehaus/mojo/versions/UseLatestVersionsMojo.java

Violation Line
Avoid unused imports such as 'java.util.Iterator' 25
These nested if statements could be combined 170175
These nested if statements could be combined 172174

org/codehaus/mojo/versions/UseNextReleasesMojo.java

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

org/codehaus/mojo/versions/UseNextSnapshotsMojo.java

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

org/codehaus/mojo/versions/UseNextVersionsMojo.java

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

org/codehaus/mojo/versions/UseReactorMojo.java

Violation Line
These nested if statements could be combined 120123

org/codehaus/mojo/versions/api/AbstractVersionDetails.java

Violation Line
Useless parentheses. 197
Useless parentheses. 197
Useless parentheses. 293
Useless parentheses. 293
Useless parentheses. 337
Useless parentheses. 337

org/codehaus/mojo/versions/api/DefaultVersionsHelper.java

Violation Line
Avoid empty catch blocks 237240
Avoid empty catch blocks 274277
Avoid unused method parameters such as 'id'. 344
These nested if statements could be combined 465475
Useless parentheses. 599
Useless parentheses. 622

org/codehaus/mojo/versions/api/PomHelper.java

Violation Line
Avoid unused imports such as 'org.apache.maven.artifact.repository.ArtifactRepository' 23
Avoid unused imports such as 'org.apache.maven.profiles.ProfileManager' 34
Avoid unused imports such as 'org.apache.maven.project.MavenProjectBuilder' 36
Avoid unused imports such as 'org.apache.maven.project.ProjectBuildingException' 37
Avoid unused method parameters such as 'evaluatedVersionRange'. 1156

org/codehaus/mojo/versions/api/PropertyVersions.java

Violation Line
Avoid empty catch blocks 187190
Avoid empty catch blocks 214217
Avoid using a branching statement as the last in a loop. 222
Useless parentheses. 456

org/codehaus/mojo/versions/api/PropertyVersionsBuilder.java

Violation Line
Useless parentheses. 247

org/codehaus/mojo/versions/api/UpdateScope.java

Violation Line
Avoid unused imports such as 'java.util.Objects' 27
Avoid unused imports such as 'org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException' 29
Overriding method merely calls super 351354

org/codehaus/mojo/versions/change/ParentVersionChanger.java

Violation Line
These nested if statements could be combined 4752

org/codehaus/mojo/versions/change/ProjectVersionChanger.java

Violation Line
These nested if statements could be combined 5055

org/codehaus/mojo/versions/ordering/AbstractVersionComparator.java

Violation Line
Useless parentheses. 91

org/codehaus/mojo/versions/ordering/ComparableVersion.java

Violation Line
Dont create instances of already existing BigInteger and BigDecimal (ZERO, ONE, TEN) 70
Useless parentheses. 180
Useless parentheses. 247
Useless parentheses. 381
Useless parentheses. 444

org/codehaus/mojo/versions/ordering/MajorMinorIncrementalFilter.java

Violation Line
These nested if statements could be combined 8386
These nested if statements could be combined 9396
These nested if statements could be combined 103106

org/codehaus/mojo/versions/ordering/MercuryVersionComparator.java

Violation Line
Dont create instances of already existing BigInteger and BigDecimal (ZERO, ONE, TEN) 38

org/codehaus/mojo/versions/ordering/NumericVersionComparator.java

Violation Line
Dont create instances of already existing BigInteger and BigDecimal (ZERO, ONE, TEN) 39
Dont create instances of already existing BigInteger and BigDecimal (ZERO, ONE, TEN) 41

org/codehaus/mojo/versions/rewriting/ModifiedPomXMLEventReader.java

Violation Line
Useless parentheses. 421