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 | 323 |
org/apache/maven/bridge/MavenRepositorySystem.java
Rule | Violation | Line |
---|---|---|
AvoidUsingHardCodedIP | Do not hard code the IP address | 749 |
org/apache/maven/configuration/BasedirBeanConfigurationPathTranslator.java
Rule | Violation | Line |
---|---|---|
EmptyControlStatement | Empty if statement | 46–54 |
org/apache/maven/execution/MavenSession.java
Rule | Violation | Line |
---|---|---|
UnusedFormalParameter | Avoid unused constructor parameters such as 'eventDispatcher'. | 328 |
org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java
Rule | Violation | Line |
---|---|---|
EmptyControlStatement | Empty if statement | 339–352 |
org/apache/maven/internal/impl/DefaultArtifactDeployer.java
Rule | Violation | Line |
---|---|---|
UnusedLocalVariable | Avoid unused local variables such as 'result'. | 64 |
org/apache/maven/internal/impl/DefaultArtifactInstaller.java
Rule | Violation | Line |
---|---|---|
UnusedLocalVariable | Avoid unused local variables such as 'result'. | 56 |
org/apache/maven/internal/impl/DefaultRepositoryFactory.java
Rule | Violation | Line |
---|---|---|
UnusedPrivateField | Avoid unused private fields such as 'repositorySystem'. | 36 |
org/apache/maven/internal/impl/DefaultSettingsXmlFactory.java
Rule | Violation | Line |
---|---|---|
UnusedLocalVariable | Avoid unused local variables such as 'source'. | 51 |
org/apache/maven/internal/impl/DefaultToolchainsBuilder.java
Rule | Violation | Line |
---|---|---|
UnusedLocalVariable | Avoid unused local variables such as 'session'. | 56 |
UnusedPrivateMethod | Avoid unused private methods such as 'toProperties(Map)'. | 90 |
org/apache/maven/internal/impl/DefaultToolchainsXmlFactory.java
Rule | Violation | Line |
---|---|---|
UnusedLocalVariable | Avoid unused local variables such as 'source'. | 51 |
org/apache/maven/lifecycle/DefaultLifecycleExecutor.java
Rule | Violation | Line |
---|---|---|
UnusedPrivateField | Avoid unused private fields such as 'defaultLifeCycles'. | 61 |
UnusedPrivateField | Avoid unused private fields such as 'mojoDescriptorCreator'. | 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'. | 56 |
org/apache/maven/lifecycle/internal/LifecycleStarter.java
Rule | Violation | Line |
---|---|---|
UnusedPrivateField | Avoid unused private fields such as 'sessionScope'. | 62 |
org/apache/maven/lifecycle/internal/builder/BuilderCommon.java
Rule | Violation | Line |
---|---|---|
EmptyControlStatement | Empty if statement | 204–214 |
org/apache/maven/lifecycle/internal/builder/multithreaded/MultiThreadedBuilder.java
Rule | Violation | Line |
---|---|---|
UnusedFormalParameter | Avoid unused method parameters such as 'muxer'. | 187 |
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 | 349–357 |
org/apache/maven/plugin/PluginParameterExpressionEvaluatorV4.java
Rule | Violation | Line |
---|---|---|
EmptyControlStatement | Empty if statement | 221–290 |
EmptyControlStatement | Empty if statement | 361–372 |
org/apache/maven/plugin/internal/DefaultMavenPluginManager.java
Rule | Violation | Line |
---|---|---|
UnusedPrivateField | Avoid unused private fields such as 'runtimeInformation'. | 141 |
org/apache/maven/plugin/internal/DefaultPluginDependenciesResolver.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 111–117 |
org/apache/maven/project/DefaultProjectBuilder.java
Rule | Violation | Line |
---|---|---|
UnusedFormalParameter | Avoid unused method parameters such as 'profilesXmls'. | 663 |
org/apache/maven/project/DefaultProjectBuildingHelper.java
Rule | Violation | Line |
---|---|---|
UnusedPrivateField | Avoid unused private fields such as 'container'. | 67 |
org/apache/maven/project/MavenProject.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 329–333 |
CollapsibleIfStatements | These nested if statements could be combined | 1324–1326 |
CollapsibleIfStatements | These nested if statements could be combined | 1344–1348 |
CollapsibleIfStatements | These nested if statements could be combined | 1477–1479 |
CollapsibleIfStatements | These nested if statements could be combined | 1493–1495 |
org/apache/maven/toolchain/java/DefaultJavaToolChain.java
Rule | Violation | Line |
---|---|---|
UselessOverridingMethod | Overriding method merely calls super | 40–42 |
UselessOverridingMethod | Overriding method merely calls super | 45–47 |
Priority 4
org/apache/maven/ReactorReader.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 322 |
UselessParentheses | Useless parentheses. | 323 |
org/apache/maven/RepositoryUtils.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 63 |
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. | 100 |
UselessParentheses | Useless parentheses. | 197 |
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' | 258 |
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' | 33 |
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' | 36 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'org.eclipse.aether.graph.DependencyNode' due to existing import 'org.eclipse.aether.graph.DependencyNode' | 40 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'org.eclipse.aether.graph.DependencyNode' due to existing import 'org.eclipse.aether.graph.DependencyNode' | 80 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'org.eclipse.aether.graph.DependencyNode' due to existing import 'org.eclipse.aether.graph.DependencyNode' | 84 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'org.eclipse.aether.graph.DependencyNode' due to existing import 'org.eclipse.aether.graph.DependencyNode' | 85 |
UselessParentheses | Useless parentheses. | 87 |
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' | 63 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'org.eclipse.aether.repository.RepositoryPolicy' due to existing import 'org.eclipse.aether.repository.RepositoryPolicy' | 77 |
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' | 78 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'org.apache.maven.toolchain.ToolchainPrivate' due to existing import 'org.apache.maven.toolchain.ToolchainPrivate' | 79 |
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' | 39 |
org/apache/maven/lifecycle/internal/DependencyContext.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 87 |
org/apache/maven/plugin/PluginParameterExpressionEvaluator.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 144 |
UselessParentheses | Useless parentheses. | 144 |
UselessParentheses | Useless parentheses. | 304 |
UselessParentheses | Useless parentheses. | 304 |
UselessParentheses | Useless parentheses. | 304 |
UselessParentheses | Useless parentheses. | 304 |
UselessParentheses | Useless parentheses. | 333–334 |
UselessParentheses | Useless parentheses. | 338 |
org/apache/maven/plugin/PluginParameterExpressionEvaluatorV4.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 147 |
UselessParentheses | Useless parentheses. | 147 |
UselessParentheses | Useless parentheses. | 316 |
UselessParentheses | Useless parentheses. | 316 |
UselessParentheses | Useless parentheses. | 316 |
UselessParentheses | Useless parentheses. | 316 |
UselessParentheses | Useless parentheses. | 345–346 |
UselessParentheses | Useless parentheses. | 350 |
org/apache/maven/plugin/internal/DefaultMavenPluginManager.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 506 |
UselessParentheses | Useless parentheses. | 506 |
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' | 231 |
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' | 97 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'org.apache.maven.model.Profile' due to existing import 'org.apache.maven.model.Profile' | 235 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'org.apache.maven.model.Profile' due to existing import 'org.apache.maven.model.Profile' | 236 |
UselessParentheses | Useless parentheses. | 751 |
UselessParentheses | Useless parentheses. | 752 |
UselessParentheses | Useless parentheses. | 752 |
UselessParentheses | Useless parentheses. | 753 |
org/apache/maven/project/MavenProject.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 405 |
UselessParentheses | Useless parentheses. | 405 |
UselessParentheses | Useless parentheses. | 440 |
UselessParentheses | Useless parentheses. | 440 |
UselessParentheses | Useless parentheses. | 840 |
UselessParentheses | Useless parentheses. | 921 |
UselessParentheses | Useless parentheses. | 921 |
UselessParentheses | Useless parentheses. | 1055 |
UselessParentheses | Useless parentheses. | 1066 |
UselessParentheses | Useless parentheses. | 1076 |
UselessParentheses | Useless parentheses. | 1080 |
UselessParentheses | Useless parentheses. | 1084 |
UselessParentheses | Useless parentheses. | 1358 |
UselessParentheses | Useless parentheses. | 1401 |
UselessParentheses | Useless parentheses. | 1426 |
UselessParentheses | Useless parentheses. | 1505 |
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' | 277 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'org.apache.maven.api.model.Dependency' due to existing import 'org.apache.maven.api.model.Dependency' | 287 |
org/apache/maven/project/artifact/MavenMetadataSource.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 436 |
UselessParentheses | Useless parentheses. | 436 |
org/apache/maven/project/collector/DefaultProjectsSelector.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 77 |
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 | 323 |
org/apache/maven/ReactorReader.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 322 |
UselessParentheses | Useless parentheses. | 4 | 323 |
org/apache/maven/RepositoryUtils.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 63 |
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 | 100 |
UselessParentheses | Useless parentheses. | 4 | 197 |
org/apache/maven/bridge/MavenRepositorySystem.java
Rule | Violation | Priority | Line |
---|---|---|---|
AvoidUsingHardCodedIP | Do not hard code the IP address | 3 | 749 |
org/apache/maven/configuration/BasedirBeanConfigurationPathTranslator.java
Rule | Violation | Priority | Line |
---|---|---|---|
EmptyControlStatement | Empty if statement | 3 | 46–54 |
org/apache/maven/execution/MavenSession.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedFormalParameter | Avoid unused constructor parameters such as 'eventDispatcher'. | 3 | 328 |
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 | 258 |
EmptyControlStatement | Empty if statement | 3 | 339–352 |
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 | 33 |
org/apache/maven/internal/impl/DefaultArtifactDeployer.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedLocalVariable | Avoid unused local variables such as 'result'. | 3 | 64 |
org/apache/maven/internal/impl/DefaultArtifactInstaller.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedLocalVariable | Avoid unused local variables such as 'result'. | 3 | 56 |
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 | 36 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'org.eclipse.aether.graph.DependencyNode' due to existing import 'org.eclipse.aether.graph.DependencyNode' | 4 | 40 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'org.eclipse.aether.graph.DependencyNode' due to existing import 'org.eclipse.aether.graph.DependencyNode' | 4 | 80 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'org.eclipse.aether.graph.DependencyNode' due to existing import 'org.eclipse.aether.graph.DependencyNode' | 4 | 84 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'org.eclipse.aether.graph.DependencyNode' due to existing import 'org.eclipse.aether.graph.DependencyNode' | 4 | 85 |
UselessParentheses | Useless parentheses. | 4 | 87 |
org/apache/maven/internal/impl/DefaultRepositoryFactory.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedPrivateField | Avoid unused private fields such as 'repositorySystem'. | 3 | 36 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'org.eclipse.aether.repository.RepositoryPolicy' due to existing import 'org.eclipse.aether.repository.RepositoryPolicy' | 4 | 63 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'org.eclipse.aether.repository.RepositoryPolicy' due to existing import 'org.eclipse.aether.repository.RepositoryPolicy' | 4 | 77 |
org/apache/maven/internal/impl/DefaultSettingsXmlFactory.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedLocalVariable | Avoid unused local variables such as 'source'. | 3 | 51 |
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 | 78 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'org.apache.maven.toolchain.ToolchainPrivate' due to existing import 'org.apache.maven.toolchain.ToolchainPrivate' | 4 | 79 |
org/apache/maven/internal/impl/DefaultToolchainsBuilder.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedLocalVariable | Avoid unused local variables such as 'session'. | 3 | 56 |
UnusedPrivateMethod | Avoid unused private methods such as 'toProperties(Map)'. | 3 | 90 |
org/apache/maven/internal/impl/DefaultToolchainsXmlFactory.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedLocalVariable | Avoid unused local variables such as 'source'. | 3 | 51 |
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 | 39 |
org/apache/maven/lifecycle/DefaultLifecycleExecutor.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedPrivateField | Avoid unused private fields such as 'defaultLifeCycles'. | 3 | 61 |
UnusedPrivateField | Avoid unused private fields such as 'mojoDescriptorCreator'. | 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 | 87 |
org/apache/maven/lifecycle/internal/LifecycleModuleBuilder.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedPrivateField | Avoid unused private fields such as 'sessionScope'. | 3 | 56 |
org/apache/maven/lifecycle/internal/LifecycleStarter.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedPrivateField | Avoid unused private fields such as 'sessionScope'. | 3 | 62 |
org/apache/maven/lifecycle/internal/builder/BuilderCommon.java
Rule | Violation | Priority | Line |
---|---|---|---|
EmptyControlStatement | Empty if statement | 3 | 204–214 |
org/apache/maven/lifecycle/internal/builder/multithreaded/MultiThreadedBuilder.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedFormalParameter | Avoid unused method parameters such as 'muxer'. | 3 | 187 |
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 | 144 |
UselessParentheses | Useless parentheses. | 4 | 144 |
UselessParentheses | Useless parentheses. | 4 | 304 |
UselessParentheses | Useless parentheses. | 4 | 304 |
UselessParentheses | Useless parentheses. | 4 | 304 |
UselessParentheses | Useless parentheses. | 4 | 304 |
UselessParentheses | Useless parentheses. | 4 | 333–334 |
UselessParentheses | Useless parentheses. | 4 | 338 |
EmptyControlStatement | Empty if statement | 3 | 349–357 |
org/apache/maven/plugin/PluginParameterExpressionEvaluatorV4.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 147 |
UselessParentheses | Useless parentheses. | 4 | 147 |
EmptyControlStatement | Empty if statement | 3 | 221–290 |
UselessParentheses | Useless parentheses. | 4 | 316 |
UselessParentheses | Useless parentheses. | 4 | 316 |
UselessParentheses | Useless parentheses. | 4 | 316 |
UselessParentheses | Useless parentheses. | 4 | 316 |
UselessParentheses | Useless parentheses. | 4 | 345–346 |
UselessParentheses | Useless parentheses. | 4 | 350 |
EmptyControlStatement | Empty if statement | 3 | 361–372 |
org/apache/maven/plugin/internal/DefaultMavenPluginManager.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedPrivateField | Avoid unused private fields such as 'runtimeInformation'. | 3 | 141 |
UselessParentheses | Useless parentheses. | 4 | 506 |
UselessParentheses | Useless parentheses. | 4 | 506 |
org/apache/maven/plugin/internal/DefaultPluginDependenciesResolver.java
Rule | Violation | Priority | Line |
---|---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 3 | 111–117 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'org.eclipse.aether.artifact.Artifact' due to existing import 'org.eclipse.aether.artifact.Artifact' | 4 | 231 |
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 | 97 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'org.apache.maven.model.Profile' due to existing import 'org.apache.maven.model.Profile' | 4 | 235 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'org.apache.maven.model.Profile' due to existing import 'org.apache.maven.model.Profile' | 4 | 236 |
UnusedFormalParameter | Avoid unused method parameters such as 'profilesXmls'. | 3 | 663 |
UselessParentheses | Useless parentheses. | 4 | 751 |
UselessParentheses | Useless parentheses. | 4 | 752 |
UselessParentheses | Useless parentheses. | 4 | 752 |
UselessParentheses | Useless parentheses. | 4 | 753 |
org/apache/maven/project/DefaultProjectBuildingHelper.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedPrivateField | Avoid unused private fields such as 'container'. | 3 | 67 |
org/apache/maven/project/MavenProject.java
Rule | Violation | Priority | Line |
---|---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 3 | 329–333 |
UselessParentheses | Useless parentheses. | 4 | 405 |
UselessParentheses | Useless parentheses. | 4 | 405 |
UselessParentheses | Useless parentheses. | 4 | 440 |
UselessParentheses | Useless parentheses. | 4 | 440 |
UselessParentheses | Useless parentheses. | 4 | 840 |
UselessParentheses | Useless parentheses. | 4 | 921 |
UselessParentheses | Useless parentheses. | 4 | 921 |
UselessParentheses | Useless parentheses. | 4 | 1055 |
UselessParentheses | Useless parentheses. | 4 | 1066 |
UselessParentheses | Useless parentheses. | 4 | 1076 |
UselessParentheses | Useless parentheses. | 4 | 1080 |
UselessParentheses | Useless parentheses. | 4 | 1084 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 1324–1326 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 1344–1348 |
UselessParentheses | Useless parentheses. | 4 | 1358 |
UselessParentheses | Useless parentheses. | 4 | 1401 |
UselessParentheses | Useless parentheses. | 4 | 1426 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 1477–1479 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 1493–1495 |
UselessParentheses | Useless parentheses. | 4 | 1505 |
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 | 277 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'org.apache.maven.api.model.Dependency' due to existing import 'org.apache.maven.api.model.Dependency' | 4 | 287 |
org/apache/maven/project/artifact/MavenMetadataSource.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 436 |
UselessParentheses | Useless parentheses. | 4 | 436 |
org/apache/maven/project/collector/DefaultProjectsSelector.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 77 |
org/apache/maven/repository/ArtifactTransferEvent.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 279 |
UselessParentheses | Useless parentheses. | 4 | 279 |
org/apache/maven/toolchain/java/DefaultJavaToolChain.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessOverridingMethod | Overriding method merely calls super | 3 | 40–42 |
UselessOverridingMethod | Overriding method merely calls super | 3 | 45–47 |