PMD Results
The following document contains the results of PMD 5.6.1.
Files
org/apache/maven/DefaultMaven.java
Violation |
Line |
Avoid returning from a finally block |
322 |
Avoid unused method parameters such as 'result'. |
505 |
org/apache/maven/ReactorReader.java
Violation |
Line |
Useless parentheses. |
253 |
Useless parentheses. |
254 |
org/apache/maven/RepositoryUtils.java
Violation |
Line |
Useless parentheses. |
65 |
org/apache/maven/artifact/repository/LegacyLocalRepositoryManager.java
Violation |
Line |
Useless parentheses. |
111 |
Useless parentheses. |
232 |
org/apache/maven/bridge/MavenRepositorySystem.java
Violation |
Line |
Do not hard code the IP address |
836 |
org/apache/maven/configuration/BasedirBeanConfigurationPathTranslator.java
Violation |
Line |
Avoid empty if statements |
53–55 |
org/apache/maven/execution/MavenSession.java
Violation |
Line |
Avoid unused constructor parameters such as 'eventDispatcher'. |
337 |
Avoid unused constructor parameters such as 'unused'. |
337 |
org/apache/maven/execution/SettingsAdapter.java
Violation |
Line |
Avoid unused private fields such as 'runtimeInfo'. |
48 |
Useless parentheses. |
60 |
org/apache/maven/lifecycle/LifecycleExecutionException.java
Violation |
Line |
Avoid unused constructor parameters such as 'execution'. |
57 |
Avoid unused constructor parameters such as 'execution'. |
63 |
org/apache/maven/lifecycle/internal/DefaultLifecycleExecutionPlanCalculator.java
Violation |
Line |
Avoid unused private fields such as 'pluginVersionResolver'. |
75 |
org/apache/maven/lifecycle/internal/DependencyContext.java
Violation |
Line |
Useless parentheses. |
96–97 |
org/apache/maven/lifecycle/internal/LifecycleModuleBuilder.java
Violation |
Line |
Avoid unused private fields such as 'projectExecutionListeners'. |
67 |
org/apache/maven/lifecycle/internal/builder/BuilderCommon.java
Violation |
Line |
Avoid empty if statements |
163–165 |
org/apache/maven/lifecycle/internal/builder/multithreaded/MultiThreadedBuilder.java
Violation |
Line |
Avoid unused method parameters such as 'muxer'. |
183 |
org/apache/maven/plugin/CycleDetectedInPluginGraphException.java
Violation |
Line |
Avoid unused constructor parameters such as 'e'. |
35 |
org/apache/maven/plugin/DefaultBuildPluginManager.java
Violation |
Line |
Avoid unused private fields such as 'mojoExecutionListeners'. |
64 |
org/apache/maven/plugin/PluginConfigurationException.java
Violation |
Line |
Avoid unused private fields such as 'pluginDescriptor'. |
33 |
Avoid unused private fields such as 'originalMessage'. |
35 |
org/apache/maven/plugin/PluginParameterExpressionEvaluator.java
Violation |
Line |
Avoid unused constructor parameters such as 'logger'. |
90 |
Avoid unused constructor parameters such as 'project'. |
90 |
Avoid unused constructor parameters such as 'pathTranslator'. |
90 |
Avoid unused constructor parameters such as 'properties'. |
91 |
Useless parentheses. |
171 |
Useless parentheses. |
171 |
Useless parentheses. |
409 |
Useless parentheses. |
409 |
Useless parentheses. |
409 |
Useless parentheses. |
409 |
Useless parentheses. |
447–448 |
Useless parentheses. |
453 |
Avoid empty if statements |
468–470 |
org/apache/maven/plugin/internal/DefaultMavenPluginManager.java
Violation |
Line |
Useless parentheses. |
531 |
Useless parentheses. |
531 |
org/apache/maven/plugin/internal/DefaultPluginDependenciesResolver.java
Violation |
Line |
Unnecessary use of fully qualified name 'org.eclipse.aether.artifact.Artifact' due to existing import 'org.eclipse.aether.artifact.Artifact' |
242 |
org/apache/maven/project/DefaultProjectBuilder.java
Violation |
Line |
Useless parentheses. |
786 |
Useless parentheses. |
786 |
Useless parentheses. |
786 |
Useless parentheses. |
787 |
org/apache/maven/project/DefaultProjectBuildingHelper.java
Violation |
Line |
Avoid unused private fields such as 'container'. |
72 |
org/apache/maven/project/MavenProject.java
Violation |
Line |
These nested if statements could be combined |
361–365 |
Useless parentheses. |
453 |
Useless parentheses. |
453 |
Useless parentheses. |
498 |
Useless parentheses. |
498 |
Useless parentheses. |
1091 |
Useless parentheses. |
1091 |
Useless parentheses. |
1260 |
Useless parentheses. |
1274 |
Useless parentheses. |
1286 |
Useless parentheses. |
1291 |
Useless parentheses. |
1296 |
These nested if statements could be combined |
1574–1577 |
These nested if statements could be combined |
1599–1603 |
Useless parentheses. |
1614 |
Useless parentheses. |
1663 |
Useless parentheses. |
1691 |
These nested if statements could be combined |
1753–1756 |
These nested if statements could be combined |
1773–1776 |
Useless parentheses. |
1787 |
org/apache/maven/project/ProjectSorter.java
Violation |
Line |
Useless parentheses. |
244 |
org/apache/maven/project/artifact/MavenMetadataSource.java
Violation |
Line |
Useless parentheses. |
487 |
Useless parentheses. |
487 |
org/apache/maven/repository/ArtifactTransferEvent.java
Violation |
Line |
Useless parentheses. |
309 |
Useless parentheses. |
309 |
org/apache/maven/toolchain/building/DefaultToolchainsBuilder.java
Violation |
Line |
Avoid unused method parameters such as 'request'. |
158 |
org/apache/maven/toolchain/java/DefaultJavaToolChain.java
Violation |
Line |
Overriding method merely calls super |
44–47 |
Overriding method merely calls super |
50–53 |