PMD Results

The following document contains the results of PMD 6.55.0.

Violations By Priority

Priority 3

org/apache/maven/artifact/resolver/filter/ExclusionArtifactFilter.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'exclusions'. 37
org/apache/maven/bridge/MavenRepositorySystem.java
Rule Violation Line
AvoidUsingHardCodedIP Do not hard code the IP address 765
org/apache/maven/configuration/BasedirBeanConfigurationPathTranslator.java
Rule Violation Line
EmptyControlStatement Empty if statement 4553
org/apache/maven/execution/MavenSession.java
Rule Violation Line
UnusedFormalParameter Avoid unused constructor parameters such as 'eventDispatcher'. 371
org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java
Rule Violation Line
EmptyControlStatement Empty if statement 387412
org/apache/maven/internal/transformation/impl/DefaultConsumerPomArtifactTransformer.java
Rule Violation Line
UnusedPrivateMethod Avoid unused private methods such as 'doDeleteFiles()'. 125
org/apache/maven/internal/transformation/impl/DefaultConsumerPomBuilder.java
Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'project'. 169
org/apache/maven/lifecycle/DefaultLifecycles.java
Rule Violation Line
UnusedFormalParameter Avoid unused constructor parameters such as 'logger'. 68
org/apache/maven/lifecycle/Lifecycle.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'lifecycle'. 65
org/apache/maven/lifecycle/LifecycleExecutionException.java
Rule Violation Line
UnusedFormalParameter Avoid unused constructor parameters such as 'execution'. 49
UnusedFormalParameter Avoid unused constructor parameters such as 'execution'. 54
org/apache/maven/lifecycle/internal/builder/BuilderCommon.java
Rule Violation Line
EmptyControlStatement Empty if statement 184194
org/apache/maven/lifecycle/internal/builder/multithreaded/MultiThreadedBuilder.java
Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'muxer'. 188
org/apache/maven/plugin/CycleDetectedInPluginGraphException.java
Rule Violation Line
UnusedFormalParameter Avoid unused constructor parameters such as 'e'. 31
org/apache/maven/plugin/PluginConfigurationException.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'pluginDescriptor'. 29
UnusedPrivateField Avoid unused private fields such as 'originalMessage'. 31
org/apache/maven/plugin/PluginParameterExpressionEvaluator.java
Rule Violation Line
EmptyControlStatement Empty if statement 352360
org/apache/maven/plugin/PluginParameterExpressionEvaluatorV4.java
Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 182189
EmptyControlStatement Empty if statement 232243
org/apache/maven/plugin/internal/DefaultMavenPluginManager.java
Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'pluginDescriptor'. 520
UnusedLocalVariable Avoid unused local variables such as 'sessionV4'. 668
org/apache/maven/project/MavenProject.java
Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'scope'. 338
CollapsibleIfStatements These nested if statements could be combined 13541356
CollapsibleIfStatements These nested if statements could be combined 13741376
CollapsibleIfStatements These nested if statements could be combined 15011506
CollapsibleIfStatements These nested if statements could be combined 15201522
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. 301
UselessParentheses Useless parentheses. 302
org/apache/maven/RepositoryUtils.java
Rule Violation Line
UselessParentheses Useless parentheses. 69
org/apache/maven/bridge/MavenRepositorySystem.java
Rule Violation Line
UselessParentheses Useless parentheses. 804
org/apache/maven/classrealm/DefaultClassRealmManager.java
Rule Violation Line
UselessParentheses Useless parentheses. 258
org/apache/maven/exception/DefaultExceptionHandler.java
Rule Violation Line
UselessParentheses Useless parentheses. 206
UselessParentheses Useless parentheses. 235
org/apache/maven/graph/DefaultGraphBuilder.java
Rule Violation Line
UselessParentheses Useless parentheses. 269
org/apache/maven/internal/impl/DefaultToolchainManager.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.toolchain.ToolchainPrivate' due to existing import 'org.apache.maven.toolchain.ToolchainPrivate' 80
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.toolchain.ToolchainPrivate' due to existing import 'org.apache.maven.toolchain.ToolchainPrivate' 81
org/apache/maven/internal/impl/SisuDiBridgeModule.java
Rule Violation Line
UselessParentheses Useless parentheses. 164166
org/apache/maven/lifecycle/internal/DefaultLifecycleExecutionPlanCalculator.java
Rule Violation Line
UselessParentheses Useless parentheses. 313
UselessParentheses Useless parentheses. 313
org/apache/maven/lifecycle/internal/DefaultLifecycleTaskSegmentCalculator.java
Rule Violation Line
UselessParentheses Useless parentheses. 7879
org/apache/maven/lifecycle/internal/DependencyContext.java
Rule Violation Line
UselessParentheses Useless parentheses. 81
org/apache/maven/plugin/PluginParameterException.java
Rule Violation Line
UselessParentheses Useless parentheses. 125
org/apache/maven/plugin/PluginParameterExpressionEvaluator.java
Rule Violation Line
UselessParentheses Useless parentheses. 145
UselessParentheses Useless parentheses. 145
UselessParentheses Useless parentheses. 307
UselessParentheses Useless parentheses. 307
UselessParentheses Useless parentheses. 307
UselessParentheses Useless parentheses. 307
UselessParentheses Useless parentheses. 336337
UselessParentheses Useless parentheses. 341
org/apache/maven/plugin/PluginParameterExpressionEvaluatorV4.java
Rule Violation Line
UselessParentheses Useless parentheses. 115
UselessParentheses Useless parentheses. 115
UselessParentheses Useless parentheses. 216217
UselessParentheses Useless parentheses. 221
org/apache/maven/plugin/internal/DefaultMavenPluginManager.java
Rule Violation Line
UselessParentheses Useless parentheses. 599
UselessParentheses Useless parentheses. 599
org/apache/maven/plugin/prefix/internal/DefaultPluginPrefixResolver.java
Rule Violation Line
UselessParentheses Useless parentheses. 100
org/apache/maven/project/DefaultProjectBuilder.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.eclipse.aether.RepositorySystem' due to existing import 'org.eclipse.aether.RepositorySystem' 103
UselessParentheses Useless parentheses. 537538
org/apache/maven/project/MavenProject.java
Rule Violation Line
UselessParentheses Useless parentheses. 441
UselessParentheses Useless parentheses. 441
UselessParentheses Useless parentheses. 476
UselessParentheses Useless parentheses. 476
UselessParentheses Useless parentheses. 881
UselessParentheses Useless parentheses. 958
UselessParentheses Useless parentheses. 958
UselessParentheses Useless parentheses. 1092
UselessParentheses Useless parentheses. 1103
UselessParentheses Useless parentheses. 1113
UselessParentheses Useless parentheses. 1117
UselessParentheses Useless parentheses. 1121
UselessParentheses Useless parentheses. 1386
UselessParentheses Useless parentheses. 1427
UselessParentheses Useless parentheses. 1452
UselessParentheses Useless parentheses. 1532
org/apache/maven/project/ProjectModelResolver.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.api.model.Parent' due to existing import 'org.apache.maven.api.model.Parent' 346
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.api.model.Dependency' due to existing import 'org.apache.maven.api.model.Dependency' 356
org/apache/maven/project/ProjectSorter.java
Rule Violation Line
UselessParentheses Useless parentheses. 244
org/apache/maven/project/collector/DefaultProjectsSelector.java
Rule Violation Line
UselessParentheses Useless parentheses. 78
UselessParentheses Useless parentheses. 78

Files

org/apache/maven/ReactorReader.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 301
UselessParentheses Useless parentheses. 4 302

org/apache/maven/RepositoryUtils.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 69

org/apache/maven/artifact/resolver/filter/ExclusionArtifactFilter.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'exclusions'. 3 37

org/apache/maven/bridge/MavenRepositorySystem.java

Rule Violation Priority Line
AvoidUsingHardCodedIP Do not hard code the IP address 3 765
UselessParentheses Useless parentheses. 4 804

org/apache/maven/classrealm/DefaultClassRealmManager.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 258

org/apache/maven/configuration/BasedirBeanConfigurationPathTranslator.java

Rule Violation Priority Line
EmptyControlStatement Empty if statement 3 4553

org/apache/maven/exception/DefaultExceptionHandler.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 206
UselessParentheses Useless parentheses. 4 235

org/apache/maven/execution/MavenSession.java

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

org/apache/maven/graph/DefaultGraphBuilder.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 269

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

Rule Violation Priority Line
EmptyControlStatement Empty if statement 3 387412

org/apache/maven/internal/impl/DefaultToolchainManager.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.toolchain.ToolchainPrivate' due to existing import 'org.apache.maven.toolchain.ToolchainPrivate' 4 80
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.toolchain.ToolchainPrivate' due to existing import 'org.apache.maven.toolchain.ToolchainPrivate' 4 81

org/apache/maven/internal/impl/SisuDiBridgeModule.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 164166

org/apache/maven/internal/transformation/impl/DefaultConsumerPomArtifactTransformer.java

Rule Violation Priority Line
UnusedPrivateMethod Avoid unused private methods such as 'doDeleteFiles()'. 3 125

org/apache/maven/internal/transformation/impl/DefaultConsumerPomBuilder.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused method parameters such as 'project'. 3 169

org/apache/maven/lifecycle/DefaultLifecycles.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused constructor parameters such as 'logger'. 3 68

org/apache/maven/lifecycle/Lifecycle.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'lifecycle'. 3 65

org/apache/maven/lifecycle/LifecycleExecutionException.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused constructor parameters such as 'execution'. 3 49
UnusedFormalParameter Avoid unused constructor parameters such as 'execution'. 3 54

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

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

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 7879

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 81

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

Rule Violation Priority Line
EmptyControlStatement Empty if statement 3 184194

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

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

org/apache/maven/plugin/CycleDetectedInPluginGraphException.java

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

org/apache/maven/plugin/PluginConfigurationException.java

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

org/apache/maven/plugin/PluginParameterException.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 125

org/apache/maven/plugin/PluginParameterExpressionEvaluator.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 145
UselessParentheses Useless parentheses. 4 145
UselessParentheses Useless parentheses. 4 307
UselessParentheses Useless parentheses. 4 307
UselessParentheses Useless parentheses. 4 307
UselessParentheses Useless parentheses. 4 307
UselessParentheses Useless parentheses. 4 336337
UselessParentheses Useless parentheses. 4 341
EmptyControlStatement Empty if statement 3 352360

org/apache/maven/plugin/PluginParameterExpressionEvaluatorV4.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 115
UselessParentheses Useless parentheses. 4 115
CollapsibleIfStatements These nested if statements could be combined 3 182189
UselessParentheses Useless parentheses. 4 216217
UselessParentheses Useless parentheses. 4 221
EmptyControlStatement Empty if statement 3 232243

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

Rule Violation Priority Line
UnusedFormalParameter Avoid unused method parameters such as 'pluginDescriptor'. 3 520
UselessParentheses Useless parentheses. 4 599
UselessParentheses Useless parentheses. 4 599
UnusedLocalVariable Avoid unused local variables such as 'sessionV4'. 3 668

org/apache/maven/plugin/prefix/internal/DefaultPluginPrefixResolver.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 100

org/apache/maven/project/DefaultProjectBuilder.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.eclipse.aether.RepositorySystem' due to existing import 'org.eclipse.aether.RepositorySystem' 4 103
UselessParentheses Useless parentheses. 4 537538

org/apache/maven/project/MavenProject.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused method parameters such as 'scope'. 3 338
UselessParentheses Useless parentheses. 4 441
UselessParentheses Useless parentheses. 4 441
UselessParentheses Useless parentheses. 4 476
UselessParentheses Useless parentheses. 4 476
UselessParentheses Useless parentheses. 4 881
UselessParentheses Useless parentheses. 4 958
UselessParentheses Useless parentheses. 4 958
UselessParentheses Useless parentheses. 4 1092
UselessParentheses Useless parentheses. 4 1103
UselessParentheses Useless parentheses. 4 1113
UselessParentheses Useless parentheses. 4 1117
UselessParentheses Useless parentheses. 4 1121
CollapsibleIfStatements These nested if statements could be combined 3 13541356
CollapsibleIfStatements These nested if statements could be combined 3 13741376
UselessParentheses Useless parentheses. 4 1386
UselessParentheses Useless parentheses. 4 1427
UselessParentheses Useless parentheses. 4 1452
CollapsibleIfStatements These nested if statements could be combined 3 15011506
CollapsibleIfStatements These nested if statements could be combined 3 15201522
UselessParentheses Useless parentheses. 4 1532

org/apache/maven/project/ProjectModelResolver.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.api.model.Parent' due to existing import 'org.apache.maven.api.model.Parent' 4 346
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.api.model.Dependency' due to existing import 'org.apache.maven.api.model.Dependency' 4 356

org/apache/maven/project/ProjectSorter.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 244

org/apache/maven/project/collector/DefaultProjectsSelector.java

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

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