PMD Results

The following document contains the results of PMD 6.55.0.

Violations By Priority

Priority 3

org/codehaus/plexus/DefaultPlexusContainer.java
Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 253254
EmptyCatchBlock Avoid empty catch blocks 261262
org/codehaus/plexus/component/builder/XBeanComponentBuilder.java
Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 263264
EmptyCatchBlock Avoid empty catch blocks 320321
UnusedLocalVariable Avoid unused local variables such as 'keyType'. 349
org/codehaus/plexus/component/collections/ComponentMap.java
Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 120122
org/codehaus/plexus/component/composition/CompositionResolver.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SEPARATOR_CHAR': the field is declared in an interface type 28
org/codehaus/plexus/component/configurator/converters/AbstractConfigurationConverter.java
Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 132136
org/codehaus/plexus/component/factory/AbstractComponentFactory.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'id'. 32
org/codehaus/plexus/component/factory/ComponentFactory.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'static' on field 'ROLE': the field is declared in an interface type 32
org/codehaus/plexus/component/factory/java/JavaComponentFactory.java
Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'implementationClass'. 78
org/codehaus/plexus/component/repository/io/PlexusTools.java
Rule Violation Line
SimplifiedTernary Ternary operators that can be simplified with || or && 129
org/codehaus/plexus/configuration/PlexusComponentDescriptorMerger.java
Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 6263
EmptyCatchBlock Avoid empty catch blocks 6364
CollapsibleIfStatements These nested if statements could be combined 9497
org/codehaus/plexus/configuration/io/PlexusConfigurationReader.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'read': the method is declared in an interface type 11
UnnecessaryModifier Unnecessary modifier 'public' on method 'read': the method is declared in an interface type 13
org/codehaus/plexus/context/Context.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'put': the method is declared in an interface type 57
org/codehaus/plexus/lifecycle/phase/Phase.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'execute': the method is declared in an interface type 31
org/codehaus/plexus/logging/console/ConsoleLoggerManager.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'loggerCount'. 58
UnusedPrivateField Avoid unused private fields such as 'bootTimeLogger'. 60
UnusedPrivateMethod Avoid unused private methods such as 'decodeLogLevel(int)'. 198
UnusedFormalParameter Avoid unused method parameters such as 'msg'. 222
org/codehaus/plexus/personality/plexus/lifecycle/phase/Contextualizable.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'contextualize': the method is declared in an interface type 26
org/codehaus/plexus/personality/plexus/lifecycle/phase/Disposable.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'dispose': the method is declared in an interface type 26
org/codehaus/plexus/personality/plexus/lifecycle/phase/Initializable.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'initialize': the method is declared in an interface type 26

Priority 4

org/codehaus/plexus/DefaultComponentRegistry.java
Rule Violation Line
UselessParentheses Useless parentheses. 480
org/codehaus/plexus/DefaultPlexusContainer.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'PlexusConstants.PLEXUS_DEFAULT_HINT' due to existing static import 'org.codehaus.plexus.PlexusConstants.PLEXUS_DEFAULT_HINT' 477
UselessParentheses Useless parentheses. 693
UselessParentheses Useless parentheses. 726
org/codehaus/plexus/component/collections/AbstractComponentCollection.java
Rule Violation Line
UselessParentheses Useless parentheses. 89
UselessParentheses Useless parentheses. 90
UselessParentheses Useless parentheses. 91
org/codehaus/plexus/component/collections/ComponentList.java
Rule Violation Line
UselessParentheses Useless parentheses. 168
org/codehaus/plexus/component/collections/ComponentMap.java
Rule Violation Line
UselessParentheses Useless parentheses. 139
org/codehaus/plexus/component/repository/ComponentDescriptor.java
Rule Violation Line
UselessParentheses Useless parentheses. 223
org/codehaus/plexus/component/repository/io/PlexusTools.java
Rule Violation Line
UselessParentheses Useless parentheses. 239
org/codehaus/plexus/configuration/DefaultPlexusConfiguration.java
Rule Violation Line
UselessParentheses Useless parentheses. 140

Files

org/codehaus/plexus/DefaultComponentRegistry.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 480

org/codehaus/plexus/DefaultPlexusContainer.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 253254
EmptyCatchBlock Avoid empty catch blocks 3 261262
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'PlexusConstants.PLEXUS_DEFAULT_HINT' due to existing static import 'org.codehaus.plexus.PlexusConstants.PLEXUS_DEFAULT_HINT' 4 477
UselessParentheses Useless parentheses. 4 693
UselessParentheses Useless parentheses. 4 726

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

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 263264
EmptyCatchBlock Avoid empty catch blocks 3 320321
UnusedLocalVariable Avoid unused local variables such as 'keyType'. 3 349

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 89
UselessParentheses Useless parentheses. 4 90
UselessParentheses Useless parentheses. 4 91

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 168

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

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 120122
UselessParentheses Useless parentheses. 4 139

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

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SEPARATOR_CHAR': the field is declared in an interface type 3 28

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

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 132136

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

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'id'. 3 32

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

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'static' on field 'ROLE': the field is declared in an interface type 3 32

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

Rule Violation Priority Line
UnusedFormalParameter Avoid unused method parameters such as 'implementationClass'. 3 78

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 223

org/codehaus/plexus/component/repository/io/PlexusTools.java

Rule Violation Priority Line
SimplifiedTernary Ternary operators that can be simplified with || or && 3 129
UselessParentheses Useless parentheses. 4 239

org/codehaus/plexus/configuration/DefaultPlexusConfiguration.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 140

org/codehaus/plexus/configuration/PlexusComponentDescriptorMerger.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 6263
EmptyCatchBlock Avoid empty catch blocks 3 6364
CollapsibleIfStatements These nested if statements could be combined 3 9497

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

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'read': the method is declared in an interface type 3 11
UnnecessaryModifier Unnecessary modifier 'public' on method 'read': the method is declared in an interface type 3 13

org/codehaus/plexus/context/Context.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'put': the method is declared in an interface type 3 57

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

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'execute': the method is declared in an interface type 3 31

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

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'loggerCount'. 3 58
UnusedPrivateField Avoid unused private fields such as 'bootTimeLogger'. 3 60
UnusedPrivateMethod Avoid unused private methods such as 'decodeLogLevel(int)'. 3 198
UnusedFormalParameter Avoid unused method parameters such as 'msg'. 3 222

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

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'contextualize': the method is declared in an interface type 3 26

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

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'dispose': the method is declared in an interface type 3 26

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

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'initialize': the method is declared in an interface type 3 26