PMD Results

The following document contains the results of PMD 6.49.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 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'. 330

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

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'repositorySystem'. 38

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

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

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

Rule Violation Line
UnusedLocalVariable Avoid unused local variables such as 'session'. 58
UnusedPrivateMethod Avoid unused private methods such as 'toProperties(Map)'. 92

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

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

org/apache/maven/lifecycle/DefaultLifecycleExecutor.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'mojoDescriptorCreator'. 69

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

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'sessionScope'. 60

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

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'sessionScope'. 64

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

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'runtimeInformation'. 143

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

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 113119

org/apache/maven/project/DefaultProjectBuilder.java

Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'profilesXmls'. 665

org/apache/maven/project/DefaultProjectBuildingHelper.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'container'. 69

org/apache/maven/project/MavenProject.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 330334
CollapsibleIfStatements These nested if statements could be combined 13261328
CollapsibleIfStatements These nested if statements could be combined 13461350
CollapsibleIfStatements These nested if statements could be combined 14791481
CollapsibleIfStatements These nested if statements could be combined 14951497

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. 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/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/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' 233

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' 237
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.model.Profile' due to existing import 'org.apache.maven.model.Profile' 238
UselessParentheses Useless parentheses. 753
UselessParentheses Useless parentheses. 754
UselessParentheses Useless parentheses. 754
UselessParentheses Useless parentheses. 755

org/apache/maven/project/MavenProject.java

Rule Violation Line
UselessParentheses Useless parentheses. 406
UselessParentheses Useless parentheses. 406
UselessParentheses Useless parentheses. 441
UselessParentheses Useless parentheses. 441
UselessParentheses Useless parentheses. 846
UselessParentheses Useless parentheses. 923
UselessParentheses Useless parentheses. 923
UselessParentheses Useless parentheses. 1057
UselessParentheses Useless parentheses. 1068
UselessParentheses Useless parentheses. 1078
UselessParentheses Useless parentheses. 1082
UselessParentheses Useless parentheses. 1086
UselessParentheses Useless parentheses. 1360
UselessParentheses Useless parentheses. 1403
UselessParentheses Useless parentheses. 1428
UselessParentheses Useless parentheses. 1507

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/artifact/MavenMetadataSource.java

Rule Violation Line
UselessParentheses Useless parentheses. 468
UselessParentheses Useless parentheses. 468

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

Rule Violation Line
UselessParentheses Useless parentheses. 79

org/apache/maven/repository/ArtifactTransferEvent.java

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

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 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 330

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
UnusedPrivateField Avoid unused private fields such as 'repositorySystem'. 3 38
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/DefaultSettingsXmlFactory.java

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

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

Rule Violation Priority Line
UnusedLocalVariable Avoid unused local variables such as 'session'. 3 58
UnusedPrivateMethod Avoid unused private methods such as 'toProperties(Map)'. 3 92

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/lifecycle/DefaultLifecycleExecutor.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'mojoDescriptorCreator'. 3 69

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

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'sessionScope'. 3 60

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

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'sessionScope'. 3 64

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/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
UnusedPrivateField Avoid unused private fields such as 'runtimeInformation'. 3 143
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 113119
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.eclipse.aether.artifact.Artifact' due to existing import 'org.eclipse.aether.artifact.Artifact' 4 233

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 237
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.model.Profile' due to existing import 'org.apache.maven.model.Profile' 4 238
UnusedFormalParameter Avoid unused method parameters such as 'profilesXmls'. 3 665
UselessParentheses Useless parentheses. 4 753
UselessParentheses Useless parentheses. 4 754
UselessParentheses Useless parentheses. 4 754
UselessParentheses Useless parentheses. 4 755

org/apache/maven/project/DefaultProjectBuildingHelper.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'container'. 3 69

org/apache/maven/project/MavenProject.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 330334
UselessParentheses Useless parentheses. 4 406
UselessParentheses Useless parentheses. 4 406
UselessParentheses Useless parentheses. 4 441
UselessParentheses Useless parentheses. 4 441
UselessParentheses Useless parentheses. 4 846
UselessParentheses Useless parentheses. 4 923
UselessParentheses Useless parentheses. 4 923
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 13261328
CollapsibleIfStatements These nested if statements could be combined 3 13461350
UselessParentheses Useless parentheses. 4 1360
UselessParentheses Useless parentheses. 4 1403
UselessParentheses Useless parentheses. 4 1428
CollapsibleIfStatements These nested if statements could be combined 3 14791481
CollapsibleIfStatements These nested if statements could be combined 3 14951497
UselessParentheses Useless parentheses. 4 1507

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/artifact/MavenMetadataSource.java

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

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 79

org/apache/maven/repository/ArtifactTransferEvent.java

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

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