PMD Results

The following document contains the results of PMD 6.49.0.

Violations By Priority

Priority 3

org/apache/maven/model/building/DefaultModelBuilder.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 965969
UnusedFormalParameter Avoid unused method parameters such as 'result'. 1346
UnusedFormalParameter Avoid unused method parameters such as 'result'. 1484

org/apache/maven/model/merge/MavenModelMerger.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 8083

org/apache/maven/model/validation/DefaultModelValidator.java

Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'request'. 273
UnusedFormalParameter Avoid unused method parameters such as 'request'. 672
UnusedFormalParameter Avoid unused method parameters such as 'request'. 765

Priority 4

org/apache/maven/model/building/DefaultModelBuilder.java

Rule Violation Line
UselessParentheses Useless parentheses. 1016
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.api.model.InputSource' due to existing import 'org.apache.maven.api.model.InputSource' 1024

org/apache/maven/model/building/ModelProblemUtils.java

Rule Violation Line
UselessParentheses Useless parentheses. 105
UselessParentheses Useless parentheses. 107
UselessParentheses Useless parentheses. 109

org/apache/maven/model/inheritance/DefaultInheritanceAssembler.java

Rule Violation Line
UselessParentheses Useless parentheses. 118

org/apache/maven/model/profile/DefaultProfileActivationContext.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'Collectors.toMap' due to existing static import 'java.util.stream.Collectors.toMap' 185

org/apache/maven/model/validation/DefaultModelValidator.java

Rule Violation Line
UselessParentheses Useless parentheses. 331332
UselessParentheses Useless parentheses. 344345

Files

org/apache/maven/model/building/DefaultModelBuilder.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 965969
UselessParentheses Useless parentheses. 4 1016
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.api.model.InputSource' due to existing import 'org.apache.maven.api.model.InputSource' 4 1024
UnusedFormalParameter Avoid unused method parameters such as 'result'. 3 1346
UnusedFormalParameter Avoid unused method parameters such as 'result'. 3 1484

org/apache/maven/model/building/ModelProblemUtils.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 105
UselessParentheses Useless parentheses. 4 107
UselessParentheses Useless parentheses. 4 109

org/apache/maven/model/inheritance/DefaultInheritanceAssembler.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 118

org/apache/maven/model/merge/MavenModelMerger.java

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

org/apache/maven/model/profile/DefaultProfileActivationContext.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'Collectors.toMap' due to existing static import 'java.util.stream.Collectors.toMap' 4 185

org/apache/maven/model/validation/DefaultModelValidator.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused method parameters such as 'request'. 3 273
UselessParentheses Useless parentheses. 4 331332
UselessParentheses Useless parentheses. 4 344345
UnusedFormalParameter Avoid unused method parameters such as 'request'. 3 672
UnusedFormalParameter Avoid unused method parameters such as 'request'. 3 765