PMD Results
The following document contains the results of PMD 5.3.2.
Files
org/apache/maven/DefaultMaven.java
Violation |
Line |
Avoid returning from a finally block |
326 |
Avoid unused method parameters such as 'result'. |
509 |
org/apache/maven/ReactorReader.java
Violation |
Line |
Useless parentheses. |
253 |
Useless parentheses. |
254 |
org/apache/maven/RepositoryUtils.java
Violation |
Line |
Useless parentheses. |
60 |
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 |
717 |
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 'unused'. |
335 |
Avoid unused constructor parameters such as 'eventDispatcher'. |
335 |
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'. |
76 |
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'. |
193 |
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'. |
61 |
org/apache/maven/plugin/ExtensionRealmCache.java
Violation |
Line |
Avoid modifiers which are implied by the context |
47–63 |
org/apache/maven/plugin/PluginArtifactsCache.java
Violation |
Line |
Avoid modifiers which are implied by the context |
50–68 |
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 'pathTranslator'. |
88 |
Avoid unused constructor parameters such as 'logger'. |
88 |
Avoid unused constructor parameters such as 'project'. |
88 |
Avoid unused constructor parameters such as 'properties'. |
89 |
Useless parentheses. |
168 |
Useless parentheses. |
168 |
Useless parentheses. |
406 |
Useless parentheses. |
406 |
Useless parentheses. |
406 |
Useless parentheses. |
406 |
Useless parentheses. |
444–445 |
Useless parentheses. |
450 |
Avoid empty if statements |
465–467 |
org/apache/maven/plugin/PluginRealmCache.java
Violation |
Line |
Avoid modifiers which are implied by the context |
44–55 |
org/apache/maven/plugin/ProjectArtifactsCache.java
Violation |
Line |
Avoid modifiers which are implied by the context |
49–67 |
org/apache/maven/plugin/internal/DefaultMavenPluginManager.java
Violation |
Line |
Useless parentheses. |
530 |
Useless parentheses. |
530 |
org/apache/maven/project/DefaultProjectBuilder.java
Violation |
Line |
Useless parentheses. |
796 |
Useless parentheses. |
796 |
Useless parentheses. |
797 |
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 |
356–360 |
Useless parentheses. |
448 |
Useless parentheses. |
448 |
Useless parentheses. |
493 |
Useless parentheses. |
493 |
Useless parentheses. |
1076 |
Useless parentheses. |
1076 |
Useless parentheses. |
1244 |
Useless parentheses. |
1258 |
Useless parentheses. |
1270 |
Useless parentheses. |
1275 |
Useless parentheses. |
1280 |
These nested if statements could be combined |
1556–1559 |
These nested if statements could be combined |
1581–1585 |
Useless parentheses. |
1596 |
Useless parentheses. |
1645 |
Useless parentheses. |
1673 |
These nested if statements could be combined |
1735–1738 |
These nested if statements could be combined |
1755–1758 |
Useless parentheses. |
1769 |
org/apache/maven/project/ProjectRealmCache.java
Violation |
Line |
Avoid modifiers which are implied by the context |
46–59 |
org/apache/maven/project/ProjectSorter.java
Violation |
Line |
Useless parentheses. |
241 |
org/apache/maven/project/artifact/MavenMetadataSource.java
Violation |
Line |
Useless parentheses. |
472 |
Useless parentheses. |
472 |
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'. |
79 |
org/apache/maven/toolchain/java/DefaultJavaToolChain.java
Violation |
Line |
Overriding method merely calls super |
44–47 |
Overriding method merely calls super |
50–53 |