PMD Results

The following document contains the results of PMD 6.55.0.

Violations By Priority

Priority 3

Plexus :: Component Metadata (Maven Plugin) (deprecated) - org/codehaus/plexus/metadata/ClassComponentDescriptorExtractor.java
Rule Violation Line
UnusedLocalVariable Avoid unused local variables such as 'url'. 94
EmptyControlStatement Empty for statement 9496
Plexus :: Component Metadata (Maven Plugin) (deprecated) - org/codehaus/plexus/metadata/gleaner/AnnotationComponentGleaner.java
Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'annClass'. 177
UnusedFormalParameter Avoid unused method parameters such as 'c'. 235
UnusedFormalParameter Avoid unused method parameters such as 'cl'. 235
Plexus :: Component Metadata (Maven Plugin) (deprecated) - org/codehaus/plexus/metadata/gleaner/QDoxComponentGleaner.java
Rule Violation Line
EmptyControlStatement Empty if statement 127129
EmptyControlStatement Empty if statement 283288
UnusedFormalParameter Avoid unused method parameters such as 'tagName'. 478
UnusedLocalVariable Avoid unused local variables such as 's'. 479
EmptyControlStatement Empty for statement 479481
Plexus :: Component Metadata (Maven Plugin) (deprecated) - org/codehaus/plexus/metadata/merge/Driver.java
Rule Violation Line
UnnecessarySemicolon Unnecessary semicolon 58
EmptyControlStatement Empty if statement 203208
Plexus :: Component Metadata (Maven Plugin) (deprecated) - org/codehaus/plexus/metadata/merge/MXParser.java
Rule Violation Line
EmptyControlStatement Empty if statement 447451
CollapsibleIfStatements These nested if statements could be combined 10761079
UnusedLocalVariable Avoid unused local variables such as 'name'. 1661
CollapsibleIfStatements These nested if statements could be combined 18181822
UnusedLocalVariable Avoid unused local variables such as 'prefix'. 1842
CollapsibleIfStatements These nested if statements could be combined 23202342
UnusedLocalVariable Avoid unused local variables such as 'standaloneStart'. 2553
CollapsibleIfStatements These nested if statements could be combined 26762686
CollapsibleIfStatements These nested if statements could be combined 26772685
CollapsibleIfStatements These nested if statements could be combined 27532755
UnnecessaryModifier Unnecessary modifier 'final' on method 'setName': private methods cannot be overridden 29622966
UnnecessaryModifier Unnecessary modifier 'final' on method 'setNameStart': private methods cannot be overridden 29682973
Plexus :: Component Metadata (Maven Plugin) (deprecated) - org/codehaus/plexus/metadata/merge/support/RequirementElement.java
Rule Violation Line
UselessOverridingMethod Overriding method merely calls super 4648
Plexus :: Default Container (deprecated) - org/codehaus/plexus/DefaultPlexusContainer.java
Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 253254
EmptyCatchBlock Avoid empty catch blocks 261262
Plexus :: Default Container (deprecated) - 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
Plexus :: Default Container (deprecated) - org/codehaus/plexus/component/collections/ComponentMap.java
Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 120122
Plexus :: Default Container (deprecated) - 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
Plexus :: Default Container (deprecated) - org/codehaus/plexus/component/configurator/converters/AbstractConfigurationConverter.java
Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 132136
Plexus :: Default Container (deprecated) - org/codehaus/plexus/component/factory/AbstractComponentFactory.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'id'. 32
Plexus :: Default Container (deprecated) - 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
Plexus :: Default Container (deprecated) - org/codehaus/plexus/component/factory/java/JavaComponentFactory.java
Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'implementationClass'. 78
Plexus :: Default Container (deprecated) - org/codehaus/plexus/component/repository/io/PlexusTools.java
Rule Violation Line
SimplifiedTernary Ternary operators that can be simplified with || or && 129
Plexus :: Default Container (deprecated) - 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
Plexus :: Default Container (deprecated) - 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
Plexus :: Default Container (deprecated) - 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
Plexus :: Default Container (deprecated) - 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
Plexus :: Default Container (deprecated) - 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
Plexus :: Default Container (deprecated) - 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
Plexus :: Default Container (deprecated) - 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
Plexus :: Default Container (deprecated) - 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

Plexus :: Component Metadata (Maven Plugin) (deprecated) - org/codehaus/plexus/metadata/merge/Driver.java
Rule Violation Line
UselessParentheses Useless parentheses. 368
UselessParentheses Useless parentheses. 412
Plexus :: Component Metadata (Maven Plugin) (deprecated) - org/codehaus/plexus/metadata/merge/MXParser.java
Rule Violation Line
UselessParentheses Useless parentheses. 136
UselessParentheses Useless parentheses. 908
UselessParentheses Useless parentheses. 909
UselessParentheses Useless parentheses. 17471749
UselessParentheses Useless parentheses. 17681771
UselessParentheses Useless parentheses. 17691771
UselessParentheses Useless parentheses. 2012
UselessParentheses Useless parentheses. 20132016
UselessParentheses Useless parentheses. 2319
UselessParentheses Useless parentheses. 2473
UselessParentheses Useless parentheses. 2993
UselessParentheses Useless parentheses. 2994
UselessParentheses Useless parentheses. 2995
UselessParentheses Useless parentheses. 2996
UselessParentheses Useless parentheses. 3025
UselessParentheses Useless parentheses. 3026
UselessParentheses Useless parentheses. 3027
UselessParentheses Useless parentheses. 3028
UselessParentheses Useless parentheses. 3046
Plexus :: Component Metadata (Maven Plugin) (deprecated) - org/codehaus/plexus/metadata/merge/support/AbstractMergeableElementList.java
Rule Violation Line
UselessParentheses Useless parentheses. 178
Plexus :: Component Metadata (Maven Plugin) (deprecated) - org/codehaus/plexus/metadata/merge/support/ComponentsElement.java
Rule Violation Line
UselessParentheses Useless parentheses. 52
Plexus :: Default Container (deprecated) - org/codehaus/plexus/DefaultComponentRegistry.java
Rule Violation Line
UselessParentheses Useless parentheses. 480
Plexus :: Default Container (deprecated) - 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
Plexus :: Default Container (deprecated) - org/codehaus/plexus/component/collections/AbstractComponentCollection.java
Rule Violation Line
UselessParentheses Useless parentheses. 89
UselessParentheses Useless parentheses. 90
UselessParentheses Useless parentheses. 91
Plexus :: Default Container (deprecated) - org/codehaus/plexus/component/collections/ComponentList.java
Rule Violation Line
UselessParentheses Useless parentheses. 168
Plexus :: Default Container (deprecated) - org/codehaus/plexus/component/collections/ComponentMap.java
Rule Violation Line
UselessParentheses Useless parentheses. 139
Plexus :: Default Container (deprecated) - org/codehaus/plexus/component/repository/ComponentDescriptor.java
Rule Violation Line
UselessParentheses Useless parentheses. 223
Plexus :: Default Container (deprecated) - org/codehaus/plexus/component/repository/io/PlexusTools.java
Rule Violation Line
UselessParentheses Useless parentheses. 239
Plexus :: Default Container (deprecated) - org/codehaus/plexus/configuration/DefaultPlexusConfiguration.java
Rule Violation Line
UselessParentheses Useless parentheses. 140

Files

Plexus :: Component Metadata (Maven Plugin) (deprecated) - org/codehaus/plexus/metadata/ClassComponentDescriptorExtractor.java

Rule Violation Priority Line
UnusedLocalVariable Avoid unused local variables such as 'url'. 3 94
EmptyControlStatement Empty for statement 3 9496

Plexus :: Component Metadata (Maven Plugin) (deprecated) - org/codehaus/plexus/metadata/gleaner/AnnotationComponentGleaner.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused method parameters such as 'annClass'. 3 177
UnusedFormalParameter Avoid unused method parameters such as 'c'. 3 235
UnusedFormalParameter Avoid unused method parameters such as 'cl'. 3 235

Plexus :: Component Metadata (Maven Plugin) (deprecated) - org/codehaus/plexus/metadata/gleaner/QDoxComponentGleaner.java

Rule Violation Priority Line
EmptyControlStatement Empty if statement 3 127129
EmptyControlStatement Empty if statement 3 283288
UnusedFormalParameter Avoid unused method parameters such as 'tagName'. 3 478
UnusedLocalVariable Avoid unused local variables such as 's'. 3 479
EmptyControlStatement Empty for statement 3 479481

Plexus :: Component Metadata (Maven Plugin) (deprecated) - org/codehaus/plexus/metadata/merge/Driver.java

Rule Violation Priority Line
UnnecessarySemicolon Unnecessary semicolon 3 58
EmptyControlStatement Empty if statement 3 203208
UselessParentheses Useless parentheses. 4 368
UselessParentheses Useless parentheses. 4 412

Plexus :: Component Metadata (Maven Plugin) (deprecated) - org/codehaus/plexus/metadata/merge/MXParser.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 136
EmptyControlStatement Empty if statement 3 447451
UselessParentheses Useless parentheses. 4 908
UselessParentheses Useless parentheses. 4 909
CollapsibleIfStatements These nested if statements could be combined 3 10761079
UnusedLocalVariable Avoid unused local variables such as 'name'. 3 1661
UselessParentheses Useless parentheses. 4 17471749
UselessParentheses Useless parentheses. 4 17681771
UselessParentheses Useless parentheses. 4 17691771
CollapsibleIfStatements These nested if statements could be combined 3 18181822
UnusedLocalVariable Avoid unused local variables such as 'prefix'. 3 1842
UselessParentheses Useless parentheses. 4 2012
UselessParentheses Useless parentheses. 4 20132016
UselessParentheses Useless parentheses. 4 2319
CollapsibleIfStatements These nested if statements could be combined 3 23202342
UselessParentheses Useless parentheses. 4 2473
UnusedLocalVariable Avoid unused local variables such as 'standaloneStart'. 3 2553
CollapsibleIfStatements These nested if statements could be combined 3 26762686
CollapsibleIfStatements These nested if statements could be combined 3 26772685
CollapsibleIfStatements These nested if statements could be combined 3 27532755
UnnecessaryModifier Unnecessary modifier 'final' on method 'setName': private methods cannot be overridden 3 29622966
UnnecessaryModifier Unnecessary modifier 'final' on method 'setNameStart': private methods cannot be overridden 3 29682973
UselessParentheses Useless parentheses. 4 2993
UselessParentheses Useless parentheses. 4 2994
UselessParentheses Useless parentheses. 4 2995
UselessParentheses Useless parentheses. 4 2996
UselessParentheses Useless parentheses. 4 3025
UselessParentheses Useless parentheses. 4 3026
UselessParentheses Useless parentheses. 4 3027
UselessParentheses Useless parentheses. 4 3028
UselessParentheses Useless parentheses. 4 3046

Plexus :: Component Metadata (Maven Plugin) (deprecated) - org/codehaus/plexus/metadata/merge/support/AbstractMergeableElementList.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 178

Plexus :: Component Metadata (Maven Plugin) (deprecated) - org/codehaus/plexus/metadata/merge/support/ComponentsElement.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 52

Plexus :: Component Metadata (Maven Plugin) (deprecated) - org/codehaus/plexus/metadata/merge/support/RequirementElement.java

Rule Violation Priority Line
UselessOverridingMethod Overriding method merely calls super 3 4648

Plexus :: Default Container (deprecated) - org/codehaus/plexus/DefaultComponentRegistry.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 480

Plexus :: Default Container (deprecated) - 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

Plexus :: Default Container (deprecated) - 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

Plexus :: Default Container (deprecated) - 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

Plexus :: Default Container (deprecated) - org/codehaus/plexus/component/collections/ComponentList.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 168

Plexus :: Default Container (deprecated) - 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

Plexus :: Default Container (deprecated) - 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

Plexus :: Default Container (deprecated) - org/codehaus/plexus/component/configurator/converters/AbstractConfigurationConverter.java

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

Plexus :: Default Container (deprecated) - org/codehaus/plexus/component/factory/AbstractComponentFactory.java

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

Plexus :: Default Container (deprecated) - 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

Plexus :: Default Container (deprecated) - org/codehaus/plexus/component/factory/java/JavaComponentFactory.java

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

Plexus :: Default Container (deprecated) - org/codehaus/plexus/component/repository/ComponentDescriptor.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 223

Plexus :: Default Container (deprecated) - 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

Plexus :: Default Container (deprecated) - org/codehaus/plexus/configuration/DefaultPlexusConfiguration.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 140

Plexus :: Default Container (deprecated) - 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

Plexus :: Default Container (deprecated) - 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

Plexus :: Default Container (deprecated) - 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

Plexus :: Default Container (deprecated) - 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

Plexus :: Default Container (deprecated) - 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

Plexus :: Default Container (deprecated) - 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

Plexus :: Default Container (deprecated) - 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

Plexus :: Default Container (deprecated) - 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