PMD Results

The following document contains the results of PMD 5.1.2.

Files

org/codehaus/plexus/DefaultPlexusContainer.java

Violation Line
Avoid empty catch blocks 297299
Avoid empty catch blocks 309311

org/codehaus/plexus/PlexusJUnit4TestCase.java

Violation Line
Avoid unused imports such as 'junit.framework.TestCase' 19

org/codehaus/plexus/component/builder/XBeanComponentBuilder.java

Violation Line
Avoid empty catch blocks 272273
Avoid empty catch blocks 320321
Avoid unused local variables such as 'keyType'. 349

org/codehaus/plexus/component/collections/ComponentMap.java

Violation Line
These nested if statements could be combined 135138

org/codehaus/plexus/component/composition/CompositionResolver.java

Violation Line
Avoid modifiers which are implied by the context 30

org/codehaus/plexus/component/configurator/converters/AbstractConfigurationConverter.java

Violation Line
These nested if statements could be combined 157162

org/codehaus/plexus/component/configurator/converters/ComponentValueSetter.java

Violation Line
Avoid unused imports such as 'org.codehaus.plexus.component.configurator.converters.lookup.DefaultConverterLookup' 22

org/codehaus/plexus/component/factory/AbstractComponentFactory.java

Violation Line
Avoid unused private fields such as 'id'. 35

org/codehaus/plexus/component/factory/ComponentFactory.java

Violation Line
Avoid modifiers which are implied by the context 33

org/codehaus/plexus/component/factory/java/JavaComponentFactory.java

Violation Line
Avoid unused private methods such as 'makeException(ClassRealm,ComponentDescriptor,Class,Throwable)'. 9396
Avoid unused method parameters such as 'implementationClass'. 95

org/codehaus/plexus/component/repository/ComponentRepository.java

Violation Line
Avoid unused imports such as 'org.codehaus.plexus.component.repository.exception.ComponentRepositoryException' 21

org/codehaus/plexus/component/repository/DefaultComponentRepository.java

Violation Line
These nested if statements could be combined 152155

org/codehaus/plexus/component/repository/exception/ComponentLookupRuntimeException.java

Violation Line
Avoid unused imports such as 'org.codehaus.plexus.classworlds.realm.ClassRealm' 3
Avoid unused imports such as 'java.io.ByteArrayOutputStream' 5
Avoid unused imports such as 'java.io.PrintStream' 6

org/codehaus/plexus/configuration/PlexusComponentDescriptorMerger.java

Violation Line
Avoid empty catch blocks 7072
Avoid empty catch blocks 7375
These nested if statements could be combined 115119

org/codehaus/plexus/configuration/io/PlexusConfigurationReader.java

Violation Line
Avoid modifiers which are implied by the context 1214
Avoid modifiers which are implied by the context 1618

org/codehaus/plexus/configuration/source/ChainedConfigurationSource.java

Violation Line
Avoid unused imports such as 'java.util.Iterator' 3

org/codehaus/plexus/container/initialization/InitializeComponentRegistryPhase.java

Violation Line
Avoid unused imports such as 'org.codehaus.plexus.component.repository.exception.ComponentRepositoryException' 22

org/codehaus/plexus/container/initialization/InitializeLoggerManagerPhase.java

Violation Line
Avoid unused imports such as 'org.codehaus.plexus.component.repository.exception.ComponentRepositoryException' 23

org/codehaus/plexus/container/initialization/InitializeUserConfigurationSourcePhase.java

Violation Line
Avoid unused imports such as 'org.codehaus.plexus.component.repository.exception.ComponentRepositoryException' 26

org/codehaus/plexus/context/Context.java

Violation Line
Avoid modifiers which are implied by the context 5960

org/codehaus/plexus/lifecycle/AbstractLifecycleHandler.java

Violation Line
Avoid unused imports such as 'java.util.Iterator' 25

org/codehaus/plexus/lifecycle/phase/Phase.java

Violation Line
Avoid modifiers which are implied by the context 2627

org/codehaus/plexus/logging/BaseLoggerManager.java

Violation Line
Avoid unused imports such as 'java.util.Iterator' 22

org/codehaus/plexus/logging/console/ConsoleLoggerManager.java

Violation Line
Avoid unused imports such as 'java.util.Iterator' 25
Avoid unused private fields such as 'loggerCount'. 63
Avoid unused private fields such as 'bootTimeLogger'. 65
Avoid unused private methods such as 'decodeLogLevel(int)'. 228
Avoid unused method parameters such as 'msg'. 246

org/codehaus/plexus/personality/plexus/lifecycle/phase/Contextualizable.java

Violation Line
Avoid modifiers which are implied by the context 2829

org/codehaus/plexus/personality/plexus/lifecycle/phase/Disposable.java

Violation Line
Avoid modifiers which are implied by the context 28

org/codehaus/plexus/personality/plexus/lifecycle/phase/Initializable.java

Violation Line
Avoid modifiers which are implied by the context 2829

org/codehaus/plexus/personality/plexus/lifecycle/phase/LogDisablePhase.java

Violation Line
Avoid unused imports such as 'org.codehaus.plexus.component.repository.ComponentDescriptor' 21

org/codehaus/plexus/personality/plexus/lifecycle/phase/LogEnablePhase.java

Violation Line
Avoid unused imports such as 'org.codehaus.plexus.component.repository.ComponentDescriptor' 21