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 332
org/apache/maven/bridge/MavenRepositorySystem.java
Rule Violation Line
AvoidUsingHardCodedIP Do not hard code the IP address 766
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'. 351
org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java
Rule Violation Line
EmptyControlStatement Empty if statement 323336
org/apache/maven/internal/impl/DefaultArtifactDeployer.java
Rule Violation Line
UnusedLocalVariable Avoid unused local variables such as 'result'. 66
org/apache/maven/internal/impl/DefaultArtifactInstaller.java
Rule Violation Line
UnusedLocalVariable Avoid unused local variables such as 'result'. 57
org/apache/maven/internal/impl/DefaultToolchainsXmlFactory.java
Rule Violation Line
UnusedLocalVariable Avoid unused local variables such as 'source'. 53
org/apache/maven/internal/transformation/ConsumerPomArtifactTransformer.java
Rule Violation Line
UnusedPrivateMethod Avoid unused private methods such as 'doDeleteFiles()'. 98
org/apache/maven/lifecycle/DefaultLifecycles.java
Rule Violation Line
UnusedFormalParameter Avoid unused constructor parameters such as 'logger'. 66
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 185195
org/apache/maven/lifecycle/internal/builder/multithreaded/MultiThreadedBuilder.java
Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'muxer'. 189
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
EmptyControlStatement Empty if statement 346354
org/apache/maven/plugin/PluginParameterExpressionEvaluatorV4.java
Rule Violation Line
EmptyControlStatement Empty if statement 218287
EmptyControlStatement Empty if statement 358369
org/apache/maven/plugin/internal/DefaultPluginDependenciesResolver.java
Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 121127
org/apache/maven/project/DefaultProjectBuilder.java
Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'profilesXmls'. 676
org/apache/maven/project/MavenProject.java
Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 334338
CollapsibleIfStatements These nested if statements could be combined 13301332
CollapsibleIfStatements These nested if statements could be combined 13501354
CollapsibleIfStatements These nested if statements could be combined 14831485
CollapsibleIfStatements These nested if statements could be combined 14991501
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. 300
UselessParentheses Useless parentheses. 301
org/apache/maven/RepositoryUtils.java
Rule Violation Line
UselessParentheses Useless parentheses. 69
org/apache/maven/bridge/MavenRepositorySystem.java
Rule Violation Line
UselessParentheses Useless parentheses. 805
org/apache/maven/classrealm/DefaultClassRealmManager.java
Rule Violation Line
UselessParentheses Useless parentheses. 274
org/apache/maven/exception/DefaultExceptionHandler.java
Rule Violation Line
UselessParentheses Useless parentheses. 206
UselessParentheses Useless parentheses. 234
org/apache/maven/graph/DefaultGraphBuilder.java
Rule Violation Line
UselessParentheses Useless parentheses. 269
org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'Collectors.toList' due to existing static import 'java.util.stream.Collectors.toList' 242
org/apache/maven/internal/impl/AbstractNode.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.eclipse.aether.graph.DependencyNode' due to existing import 'org.eclipse.aether.graph.DependencyNode' 34
org/apache/maven/internal/impl/DefaultNode.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.eclipse.aether.graph.DependencyNode' due to existing import 'org.eclipse.aether.graph.DependencyNode' 37
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.eclipse.aether.graph.DependencyNode' due to existing import 'org.eclipse.aether.graph.DependencyNode' 41
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.eclipse.aether.graph.DependencyNode' due to existing import 'org.eclipse.aether.graph.DependencyNode' 81
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.eclipse.aether.graph.DependencyNode' due to existing import 'org.eclipse.aether.graph.DependencyNode' 85
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.eclipse.aether.graph.DependencyNode' due to existing import 'org.eclipse.aether.graph.DependencyNode' 86
UselessParentheses Useless parentheses. 88
org/apache/maven/internal/impl/DefaultRepositoryFactory.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.eclipse.aether.repository.RepositoryPolicy' due to existing import 'org.eclipse.aether.repository.RepositoryPolicy' 65
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.eclipse.aether.repository.RepositoryPolicy' due to existing import 'org.eclipse.aether.repository.RepositoryPolicy' 79
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/DefaultTransportProvider.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.eclipse.aether.spi.connector.transport.TransporterProvider' due to existing import 'org.eclipse.aether.spi.connector.transport.TransporterProvider' 41
org/apache/maven/lifecycle/internal/DependencyContext.java
Rule Violation Line
UselessParentheses Useless parentheses. 88
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. 301
UselessParentheses Useless parentheses. 301
UselessParentheses Useless parentheses. 301
UselessParentheses Useless parentheses. 301
UselessParentheses Useless parentheses. 330331
UselessParentheses Useless parentheses. 335
org/apache/maven/plugin/PluginParameterExpressionEvaluatorV4.java
Rule Violation Line
UselessParentheses Useless parentheses. 148
UselessParentheses Useless parentheses. 148
UselessParentheses Useless parentheses. 313
UselessParentheses Useless parentheses. 313
UselessParentheses Useless parentheses. 313
UselessParentheses Useless parentheses. 313
UselessParentheses Useless parentheses. 342343
UselessParentheses Useless parentheses. 347
org/apache/maven/plugin/internal/DefaultMavenPluginManager.java
Rule Violation Line
UselessParentheses Useless parentheses. 514
UselessParentheses Useless parentheses. 514
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' 241
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' 99
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.model.Profile' due to existing import 'org.apache.maven.model.Profile' 246
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.model.Profile' due to existing import 'org.apache.maven.model.Profile' 247
UselessParentheses Useless parentheses. 764
UselessParentheses Useless parentheses. 765
UselessParentheses Useless parentheses. 765
UselessParentheses Useless parentheses. 766
org/apache/maven/project/MavenProject.java
Rule Violation Line
UselessParentheses Useless parentheses. 410
UselessParentheses Useless parentheses. 410
UselessParentheses Useless parentheses. 445
UselessParentheses Useless parentheses. 445
UselessParentheses Useless parentheses. 850
UselessParentheses Useless parentheses. 927
UselessParentheses Useless parentheses. 927
UselessParentheses Useless parentheses. 1061
UselessParentheses Useless parentheses. 1072
UselessParentheses Useless parentheses. 1082
UselessParentheses Useless parentheses. 1086
UselessParentheses Useless parentheses. 1090
UselessParentheses Useless parentheses. 1364
UselessParentheses Useless parentheses. 1407
UselessParentheses Useless parentheses. 1432
UselessParentheses Useless parentheses. 1511
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' 278
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.api.model.Dependency' due to existing import 'org.apache.maven.api.model.Dependency' 288
org/apache/maven/project/ProjectSorter.java
Rule Violation Line
UselessParentheses Useless parentheses. 247
org/apache/maven/project/collector/DefaultProjectsSelector.java
Rule Violation Line
UselessParentheses Useless parentheses. 78
UselessParentheses Useless parentheses. 78
org/apache/maven/settings/SettingsUtilsV4.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.api.model.ActivationFile' due to existing import 'org.apache.maven.api.model.ActivationFile' 115

Files

org/apache/maven/DefaultMaven.java

Rule Violation Priority Line
ReturnFromFinallyBlock Avoid returning from a finally block 3 332

org/apache/maven/ReactorReader.java

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

org/apache/maven/RepositoryUtils.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 69

org/apache/maven/bridge/MavenRepositorySystem.java

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

org/apache/maven/classrealm/DefaultClassRealmManager.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 274

org/apache/maven/configuration/BasedirBeanConfigurationPathTranslator.java

Rule Violation Priority Line
EmptyControlStatement Empty if statement 3 4654

org/apache/maven/exception/DefaultExceptionHandler.java

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

org/apache/maven/execution/MavenSession.java

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

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
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'Collectors.toList' due to existing static import 'java.util.stream.Collectors.toList' 4 242
EmptyControlStatement Empty if statement 3 323336

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

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.eclipse.aether.graph.DependencyNode' due to existing import 'org.eclipse.aether.graph.DependencyNode' 4 34

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

Rule Violation Priority Line
UnusedLocalVariable Avoid unused local variables such as 'result'. 3 66

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

Rule Violation Priority Line
UnusedLocalVariable Avoid unused local variables such as 'result'. 3 57

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

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.eclipse.aether.graph.DependencyNode' due to existing import 'org.eclipse.aether.graph.DependencyNode' 4 37
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.eclipse.aether.graph.DependencyNode' due to existing import 'org.eclipse.aether.graph.DependencyNode' 4 41
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.eclipse.aether.graph.DependencyNode' due to existing import 'org.eclipse.aether.graph.DependencyNode' 4 81
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.eclipse.aether.graph.DependencyNode' due to existing import 'org.eclipse.aether.graph.DependencyNode' 4 85
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.eclipse.aether.graph.DependencyNode' due to existing import 'org.eclipse.aether.graph.DependencyNode' 4 86
UselessParentheses Useless parentheses. 4 88

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

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.eclipse.aether.repository.RepositoryPolicy' due to existing import 'org.eclipse.aether.repository.RepositoryPolicy' 4 65
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.eclipse.aether.repository.RepositoryPolicy' due to existing import 'org.eclipse.aether.repository.RepositoryPolicy' 4 79

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/DefaultToolchainsXmlFactory.java

Rule Violation Priority Line
UnusedLocalVariable Avoid unused local variables such as 'source'. 3 53

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

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.eclipse.aether.spi.connector.transport.TransporterProvider' due to existing import 'org.eclipse.aether.spi.connector.transport.TransporterProvider' 4 41

org/apache/maven/internal/transformation/ConsumerPomArtifactTransformer.java

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

org/apache/maven/lifecycle/DefaultLifecycles.java

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

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 185195

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

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

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/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 301
UselessParentheses Useless parentheses. 4 301
UselessParentheses Useless parentheses. 4 301
UselessParentheses Useless parentheses. 4 301
UselessParentheses Useless parentheses. 4 330331
UselessParentheses Useless parentheses. 4 335
EmptyControlStatement Empty if statement 3 346354

org/apache/maven/plugin/PluginParameterExpressionEvaluatorV4.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 148
UselessParentheses Useless parentheses. 4 148
EmptyControlStatement Empty if statement 3 218287
UselessParentheses Useless parentheses. 4 313
UselessParentheses Useless parentheses. 4 313
UselessParentheses Useless parentheses. 4 313
UselessParentheses Useless parentheses. 4 313
UselessParentheses Useless parentheses. 4 342343
UselessParentheses Useless parentheses. 4 347
EmptyControlStatement Empty if statement 3 358369

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

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

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

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

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 99
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.model.Profile' due to existing import 'org.apache.maven.model.Profile' 4 246
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.model.Profile' due to existing import 'org.apache.maven.model.Profile' 4 247
UnusedFormalParameter Avoid unused method parameters such as 'profilesXmls'. 3 676
UselessParentheses Useless parentheses. 4 764
UselessParentheses Useless parentheses. 4 765
UselessParentheses Useless parentheses. 4 765
UselessParentheses Useless parentheses. 4 766

org/apache/maven/project/MavenProject.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 334338
UselessParentheses Useless parentheses. 4 410
UselessParentheses Useless parentheses. 4 410
UselessParentheses Useless parentheses. 4 445
UselessParentheses Useless parentheses. 4 445
UselessParentheses Useless parentheses. 4 850
UselessParentheses Useless parentheses. 4 927
UselessParentheses Useless parentheses. 4 927
UselessParentheses Useless parentheses. 4 1061
UselessParentheses Useless parentheses. 4 1072
UselessParentheses Useless parentheses. 4 1082
UselessParentheses Useless parentheses. 4 1086
UselessParentheses Useless parentheses. 4 1090
CollapsibleIfStatements These nested if statements could be combined 3 13301332
CollapsibleIfStatements These nested if statements could be combined 3 13501354
UselessParentheses Useless parentheses. 4 1364
UselessParentheses Useless parentheses. 4 1407
UselessParentheses Useless parentheses. 4 1432
CollapsibleIfStatements These nested if statements could be combined 3 14831485
CollapsibleIfStatements These nested if statements could be combined 3 14991501
UselessParentheses Useless parentheses. 4 1511

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 278
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.api.model.Dependency' due to existing import 'org.apache.maven.api.model.Dependency' 4 288

org/apache/maven/project/ProjectSorter.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 247

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

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

org/apache/maven/settings/SettingsUtilsV4.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.api.model.ActivationFile' due to existing import 'org.apache.maven.api.model.ActivationFile' 4 115

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