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 11271131
org/apache/maven/model/io/DefaultModelReader.java
Rule Violation Line
UnusedPrivateMethod Avoid unused private methods such as 'getRootDirectory(Map)'. 104
UnusedFormalParameter Avoid unused method parameters such as 'pomFile'. 109
UnusedFormalParameter Avoid unused method parameters such as 'pomFile'. 133
org/apache/maven/model/validation/DefaultModelValidator.java
Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'request'. 954
UnusedFormalParameter Avoid unused method parameters such as 'request'. 1047

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. 1179
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.api.model.InputSource' due to existing import 'org.apache.maven.api.model.InputSource' 1188
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' 134
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.api.model.Model' due to existing import 'org.apache.maven.api.model.Model' 164
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' 193
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.api.model.Model' due to existing import 'org.apache.maven.api.model.Model' 204
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. 554555
UselessParentheses Useless parentheses. 567568
org/apache/maven/utils/Os.java
Rule Violation Line
UselessParentheses Useless parentheses. 166171

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 11271131
UselessParentheses Useless parentheses. 4 1179
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.api.model.InputSource' due to existing import 'org.apache.maven.api.model.InputSource' 4 1188

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 134
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.api.model.Model' due to existing import 'org.apache.maven.api.model.Model' 4 164
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 193
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.api.model.Model' due to existing import 'org.apache.maven.api.model.Model' 4 204

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 104
UnusedFormalParameter Avoid unused method parameters such as 'pomFile'. 3 109
UnusedFormalParameter Avoid unused method parameters such as 'pomFile'. 3 133

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 554555
UselessParentheses Useless parentheses. 4 567568
UnusedFormalParameter Avoid unused method parameters such as 'request'. 3 954
UnusedFormalParameter Avoid unused method parameters such as 'request'. 3 1047

org/apache/maven/utils/Os.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 166171