PMD Results

The following document contains the results of PMD 5.0.5.

Files

org/apache/maven/DefaultMaven.java

Violation Line
Avoid returning from a finally block 364

org/apache/maven/RepositoryUtils.java

Violation Line
Avoid unused imports such as 'org.apache.maven.artifact.InvalidRepositoryException' 28
Avoid unused imports such as 'org.apache.maven.artifact.repository.MavenArtifactRepository' 34
Avoid unused imports such as 'org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout' 35
Avoid unused imports such as 'org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout2' 36
Avoid unused imports such as 'org.apache.maven.artifact.repository.layout.DefaultRepositoryLayout' 37
Avoid unused imports such as 'org.codehaus.plexus.util.StringUtils' 38

org/apache/maven/bridge/MavenRepositorySystem.java

Violation Line
Avoid unused private fields such as 'artifactResolver'. 84
Avoid unused private fields such as 'plexus'. 90

org/apache/maven/bridge/MirrorSelector.java

Violation Line
Do not hard code the IP address 130

org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java

Violation Line
Avoid unused imports such as 'org.apache.maven.RepositoryUtils' 27

org/apache/maven/execution/MavenSession.java

Violation Line
Avoid unused constructor parameters such as 'unused'. 101
Avoid unused constructor parameters such as 'eventDispatcher'. 101

org/apache/maven/execution/SettingsAdapter.java

Violation Line
Avoid unused private fields such as 'runtimeInfo'. 48

org/apache/maven/lifecycle/LifecycleExecutionException.java

Violation Line
Avoid unused constructor parameters such as 'execution'. 54
Avoid unused constructor parameters such as 'execution'. 60

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

Violation Line
Avoid unused private fields such as 'pluginVersionResolver'. 75

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

Violation Line
Avoid unused private fields such as 'projectExecutionListeners'. 66

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

Violation Line
Avoid unused method parameters such as 'muxer'. 181

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 4760

org/apache/maven/plugin/PluginArtifactsCache.java

Violation Line
Avoid modifiers which are implied by the context 5068

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 'project'. 80
Avoid unused constructor parameters such as 'pathTranslator'. 80
Avoid unused constructor parameters such as 'logger'. 80
Avoid unused constructor parameters such as 'properties'. 81

org/apache/maven/plugin/PluginRealmCache.java

Violation Line
Avoid modifiers which are implied by the context 4455

org/apache/maven/project/MavenProject.java

Violation Line
These nested if statements could be combined 351355
These nested if statements could be combined 15481551
These nested if statements could be combined 15731577
These nested if statements could be combined 17271730
These nested if statements could be combined 17471750

org/apache/maven/project/ProjectRealmCache.java

Violation Line
Avoid modifiers which are implied by the context 4659