PMD Results

The following document contains the results of PMD 6.55.0.

Violations By Priority

Priority 3

org/apache/maven/DefaultMaven.java
Rule Violation Line
ReturnFromFinallyBlock Avoid returning from a finally block 274
UnusedFormalParameter Avoid unused method parameters such as 'result'. 447
org/apache/maven/ReactorReader.java
Rule Violation Line
UnusedPrivateMethod Avoid unused private methods such as 'determinePreviouslyPackagedArtifactFile(MavenProject,Artifact)'. 161
org/apache/maven/bridge/MavenRepositorySystem.java
Rule Violation Line
AvoidUsingHardCodedIP Do not hard code the IP address 751
org/apache/maven/configuration/BasedirBeanConfigurationPathTranslator.java
Rule Violation Line
EmptyControlStatement Empty if statement 4654
org/apache/maven/execution/MavenSession.java
Rule Violation Line
UnusedFormalParameter Avoid unused constructor parameters such as 'eventDispatcher'. 319
org/apache/maven/execution/SettingsAdapter.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'runtimeInfo'. 45
org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java
Rule Violation Line
EmptyControlStatement Empty if statement 321334
org/apache/maven/lifecycle/LifecycleExecutionException.java
Rule Violation Line
UnusedFormalParameter Avoid unused constructor parameters such as 'execution'. 50
UnusedFormalParameter Avoid unused constructor parameters such as 'execution'. 55
org/apache/maven/lifecycle/internal/builder/BuilderCommon.java
Rule Violation Line
EmptyControlStatement Empty if statement 152162
org/apache/maven/lifecycle/internal/builder/multithreaded/MultiThreadedBuilder.java
Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'muxer'. 178
org/apache/maven/plugin/CycleDetectedInPluginGraphException.java
Rule Violation Line
UnusedFormalParameter Avoid unused constructor parameters such as 'e'. 32
org/apache/maven/plugin/PluginConfigurationException.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'pluginDescriptor'. 30
UnusedPrivateField Avoid unused private fields such as 'originalMessage'. 32
org/apache/maven/plugin/PluginParameterExpressionEvaluator.java
Rule Violation Line
UnusedFormalParameter Avoid unused constructor parameters such as 'pathTranslator'. 90
UnusedFormalParameter Avoid unused constructor parameters such as 'logger'. 91
UnusedFormalParameter Avoid unused constructor parameters such as 'project'. 92
UnusedFormalParameter Avoid unused constructor parameters such as 'properties'. 93
EmptyControlStatement Empty if statement 361369
org/apache/maven/plugin/internal/DefaultPluginDependenciesResolver.java
Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 116122
org/apache/maven/project/MavenProject.java
Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 326330
CollapsibleIfStatements These nested if statements could be combined 13251327
CollapsibleIfStatements These nested if statements could be combined 13451349
CollapsibleIfStatements These nested if statements could be combined 14781480
CollapsibleIfStatements These nested if statements could be combined 14941496
org/apache/maven/toolchain/building/DefaultToolchainsBuilder.java
Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'request'. 144
org/apache/maven/toolchain/java/DefaultJavaToolChain.java
Rule Violation Line
UselessOverridingMethod Overriding method merely calls super 4143
UselessOverridingMethod Overriding method merely calls super 4648

Priority 4

org/apache/maven/ReactorReader.java
Rule Violation Line
UselessParentheses Useless parentheses. 225
UselessParentheses Useless parentheses. 226
org/apache/maven/RepositoryUtils.java
Rule Violation Line
UselessParentheses Useless parentheses. 64
org/apache/maven/artifact/metadata/AbstractArtifactMetadata.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.artifact.metadata.ArtifactMetadata' due to existing same package import 'org.apache.maven.artifact.metadata.*' 29
org/apache/maven/artifact/repository/LegacyLocalRepositoryManager.java
Rule Violation Line
UselessParentheses Useless parentheses. 101
UselessParentheses Useless parentheses. 198
org/apache/maven/execution/SettingsAdapter.java
Rule Violation Line
UselessParentheses Useless parentheses. 56
org/apache/maven/lifecycle/internal/DependencyContext.java
Rule Violation Line
UselessParentheses Useless parentheses. 88
org/apache/maven/plugin/PluginParameterExpressionEvaluator.java
Rule Violation Line
UselessParentheses Useless parentheses. 158
UselessParentheses Useless parentheses. 158
UselessParentheses Useless parentheses. 316
UselessParentheses Useless parentheses. 316
UselessParentheses Useless parentheses. 316
UselessParentheses Useless parentheses. 316
UselessParentheses Useless parentheses. 345346
UselessParentheses Useless parentheses. 350
org/apache/maven/plugin/internal/DefaultMavenPluginManager.java
Rule Violation Line
UselessParentheses Useless parentheses. 500
UselessParentheses Useless parentheses. 500
org/apache/maven/plugin/internal/DefaultPluginDependenciesResolver.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.eclipse.aether.artifact.Artifact' due to existing import 'org.eclipse.aether.artifact.Artifact' 243
org/apache/maven/project/DefaultProjectBuilder.java
Rule Violation Line
UselessParentheses Useless parentheses. 771
UselessParentheses Useless parentheses. 772
UselessParentheses Useless parentheses. 772
UselessParentheses Useless parentheses. 773
org/apache/maven/project/MavenProject.java
Rule Violation Line
UselessParentheses Useless parentheses. 402
UselessParentheses Useless parentheses. 402
UselessParentheses Useless parentheses. 437
UselessParentheses Useless parentheses. 437
UselessParentheses Useless parentheses. 843
UselessParentheses Useless parentheses. 920
UselessParentheses Useless parentheses. 920
UselessParentheses Useless parentheses. 1057
UselessParentheses Useless parentheses. 1068
UselessParentheses Useless parentheses. 1078
UselessParentheses Useless parentheses. 1082
UselessParentheses Useless parentheses. 1086
UselessParentheses Useless parentheses. 1359
UselessParentheses Useless parentheses. 1402
UselessParentheses Useless parentheses. 1427
UselessParentheses Useless parentheses. 1506
org/apache/maven/project/ProjectSorter.java
Rule Violation Line
UselessParentheses Useless parentheses. 267
org/apache/maven/project/artifact/MavenMetadataSource.java
Rule Violation Line
UselessParentheses Useless parentheses. 473
UselessParentheses Useless parentheses. 473
org/apache/maven/repository/ArtifactTransferEvent.java
Rule Violation Line
UselessParentheses Useless parentheses. 279
UselessParentheses Useless parentheses. 279

Files

org/apache/maven/DefaultMaven.java

Rule Violation Priority Line
ReturnFromFinallyBlock Avoid returning from a finally block 3 274
UnusedFormalParameter Avoid unused method parameters such as 'result'. 3 447

org/apache/maven/ReactorReader.java

Rule Violation Priority Line
UnusedPrivateMethod Avoid unused private methods such as 'determinePreviouslyPackagedArtifactFile(MavenProject,Artifact)'. 3 161
UselessParentheses Useless parentheses. 4 225
UselessParentheses Useless parentheses. 4 226

org/apache/maven/RepositoryUtils.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 64

org/apache/maven/artifact/metadata/AbstractArtifactMetadata.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.artifact.metadata.ArtifactMetadata' due to existing same package import 'org.apache.maven.artifact.metadata.*' 4 29

org/apache/maven/artifact/repository/LegacyLocalRepositoryManager.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 101
UselessParentheses Useless parentheses. 4 198

org/apache/maven/bridge/MavenRepositorySystem.java

Rule Violation Priority Line
AvoidUsingHardCodedIP Do not hard code the IP address 3 751

org/apache/maven/configuration/BasedirBeanConfigurationPathTranslator.java

Rule Violation Priority Line
EmptyControlStatement Empty if statement 3 4654

org/apache/maven/execution/MavenSession.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused constructor parameters such as 'eventDispatcher'. 3 319

org/apache/maven/execution/SettingsAdapter.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'runtimeInfo'. 3 45
UselessParentheses Useless parentheses. 4 56

org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java

Rule Violation Priority Line
EmptyControlStatement Empty if statement 3 321334

org/apache/maven/lifecycle/LifecycleExecutionException.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused constructor parameters such as 'execution'. 3 50
UnusedFormalParameter Avoid unused constructor parameters such as 'execution'. 3 55

org/apache/maven/lifecycle/internal/DependencyContext.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 88

org/apache/maven/lifecycle/internal/builder/BuilderCommon.java

Rule Violation Priority Line
EmptyControlStatement Empty if statement 3 152162

org/apache/maven/lifecycle/internal/builder/multithreaded/MultiThreadedBuilder.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused method parameters such as 'muxer'. 3 178

org/apache/maven/plugin/CycleDetectedInPluginGraphException.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused constructor parameters such as 'e'. 3 32

org/apache/maven/plugin/PluginConfigurationException.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'pluginDescriptor'. 3 30
UnusedPrivateField Avoid unused private fields such as 'originalMessage'. 3 32

org/apache/maven/plugin/PluginParameterExpressionEvaluator.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused constructor parameters such as 'pathTranslator'. 3 90
UnusedFormalParameter Avoid unused constructor parameters such as 'logger'. 3 91
UnusedFormalParameter Avoid unused constructor parameters such as 'project'. 3 92
UnusedFormalParameter Avoid unused constructor parameters such as 'properties'. 3 93
UselessParentheses Useless parentheses. 4 158
UselessParentheses Useless parentheses. 4 158
UselessParentheses Useless parentheses. 4 316
UselessParentheses Useless parentheses. 4 316
UselessParentheses Useless parentheses. 4 316
UselessParentheses Useless parentheses. 4 316
UselessParentheses Useless parentheses. 4 345346
UselessParentheses Useless parentheses. 4 350
EmptyControlStatement Empty if statement 3 361369

org/apache/maven/plugin/internal/DefaultMavenPluginManager.java

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

org/apache/maven/plugin/internal/DefaultPluginDependenciesResolver.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 116122
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.eclipse.aether.artifact.Artifact' due to existing import 'org.eclipse.aether.artifact.Artifact' 4 243

org/apache/maven/project/DefaultProjectBuilder.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 771
UselessParentheses Useless parentheses. 4 772
UselessParentheses Useless parentheses. 4 772
UselessParentheses Useless parentheses. 4 773

org/apache/maven/project/MavenProject.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 326330
UselessParentheses Useless parentheses. 4 402
UselessParentheses Useless parentheses. 4 402
UselessParentheses Useless parentheses. 4 437
UselessParentheses Useless parentheses. 4 437
UselessParentheses Useless parentheses. 4 843
UselessParentheses Useless parentheses. 4 920
UselessParentheses Useless parentheses. 4 920
UselessParentheses Useless parentheses. 4 1057
UselessParentheses Useless parentheses. 4 1068
UselessParentheses Useless parentheses. 4 1078
UselessParentheses Useless parentheses. 4 1082
UselessParentheses Useless parentheses. 4 1086
CollapsibleIfStatements These nested if statements could be combined 3 13251327
CollapsibleIfStatements These nested if statements could be combined 3 13451349
UselessParentheses Useless parentheses. 4 1359
UselessParentheses Useless parentheses. 4 1402
UselessParentheses Useless parentheses. 4 1427
CollapsibleIfStatements These nested if statements could be combined 3 14781480
CollapsibleIfStatements These nested if statements could be combined 3 14941496
UselessParentheses Useless parentheses. 4 1506

org/apache/maven/project/ProjectSorter.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 267

org/apache/maven/project/artifact/MavenMetadataSource.java

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

org/apache/maven/repository/ArtifactTransferEvent.java

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

org/apache/maven/toolchain/building/DefaultToolchainsBuilder.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused method parameters such as 'request'. 3 144

org/apache/maven/toolchain/java/DefaultJavaToolChain.java

Rule Violation Priority Line
UselessOverridingMethod Overriding method merely calls super 3 4143
UselessOverridingMethod Overriding method merely calls super 3 4648