PMD Results

The following document contains the results of PMD 6.55.0.

Violations By Priority

Priority 3

org/apache/maven/model/building/DefaultModelBuilder.java
Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 10781082
org/apache/maven/model/io/DefaultModelReader.java
Rule Violation Line
UnusedPrivateMethod Avoid unused private methods such as 'getRootDirectory(Map)'. 98
UnusedFormalParameter Avoid unused method parameters such as 'pomFile'. 103
UnusedFormalParameter Avoid unused method parameters such as 'pomFile'. 127
org/apache/maven/model/merge/MavenModelMerger.java
Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 113116
org/apache/maven/model/validation/DefaultModelValidator.java
Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'request'. 693
UnusedFormalParameter Avoid unused method parameters such as 'request'. 786

Priority 4

org/apache/maven/model/building/BuildModelSourceTransformer.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.model.Model' due to existing import 'org.apache.maven.model.Model' 151
org/apache/maven/model/building/DefaultModelBuilder.java
Rule Violation Line
UselessParentheses Useless parentheses. 1130
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.api.model.InputSource' due to existing import 'org.apache.maven.api.model.InputSource' 1139
org/apache/maven/model/building/DefaultModelProcessor.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.api.model.Model' due to existing import 'org.apache.maven.api.model.Model' 132
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.api.model.Model' due to existing import 'org.apache.maven.api.model.Model' 162
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.api.model.Model' due to existing import 'org.apache.maven.api.model.Model' 177
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.api.model.Model' due to existing import 'org.apache.maven.api.model.Model' 185
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.api.model.Model' due to existing import 'org.apache.maven.api.model.Model' 196
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/interpolation/reflection/MethodMap.java
Rule Violation Line
UselessParentheses Useless parentheses. 365
org/apache/maven/model/normalization/DefaultModelNormalizer.java
Rule Violation Line
UselessParentheses Useless parentheses. 140
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' 184
org/apache/maven/model/validation/DefaultModelValidator.java
Rule Violation Line
UselessParentheses Useless parentheses. 341342
UselessParentheses Useless parentheses. 354355
org/apache/maven/utils/Os.java
Rule Violation Line
UselessParentheses Useless parentheses. 157162

Files

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

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.model.Model' due to existing import 'org.apache.maven.model.Model' 4 151

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

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 10781082
UselessParentheses Useless parentheses. 4 1130
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.api.model.InputSource' due to existing import 'org.apache.maven.api.model.InputSource' 4 1139

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

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.api.model.Model' due to existing import 'org.apache.maven.api.model.Model' 4 132
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.api.model.Model' due to existing import 'org.apache.maven.api.model.Model' 4 162
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.api.model.Model' due to existing import 'org.apache.maven.api.model.Model' 4 177
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.api.model.Model' due to existing import 'org.apache.maven.api.model.Model' 4 185
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.api.model.Model' due to existing import 'org.apache.maven.api.model.Model' 4 196

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/interpolation/reflection/MethodMap.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 365

org/apache/maven/model/io/DefaultModelReader.java

Rule Violation Priority Line
UnusedPrivateMethod Avoid unused private methods such as 'getRootDirectory(Map)'. 3 98
UnusedFormalParameter Avoid unused method parameters such as 'pomFile'. 3 103
UnusedFormalParameter Avoid unused method parameters such as 'pomFile'. 3 127

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

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

org/apache/maven/model/normalization/DefaultModelNormalizer.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 140

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 184

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 341342
UselessParentheses Useless parentheses. 4 354355
UnusedFormalParameter Avoid unused method parameters such as 'request'. 3 693
UnusedFormalParameter Avoid unused method parameters such as 'request'. 3 786

org/apache/maven/utils/Os.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 157162