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 10991103
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/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. 1151
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.api.model.InputSource' due to existing import 'org.apache.maven.api.model.InputSource' 1160
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' 135
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.api.model.Model' due to existing import 'org.apache.maven.api.model.Model' 165
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.api.model.Model' due to existing import 'org.apache.maven.api.model.Model' 186
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.api.model.Model' due to existing import 'org.apache.maven.api.model.Model' 194
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.api.model.Model' due to existing import 'org.apache.maven.api.model.Model' 205
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. 170175

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

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 135
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.api.model.Model' due to existing import 'org.apache.maven.api.model.Model' 4 165
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.api.model.Model' due to existing import 'org.apache.maven.api.model.Model' 4 186
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.api.model.Model' due to existing import 'org.apache.maven.api.model.Model' 4 194
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.maven.api.model.Model' due to existing import 'org.apache.maven.api.model.Model' 4 205

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/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 170175