PMD Results

The following document contains the results of PMD 7.0.0.

Violations By Priority

Priority 3

org/apache/maven/artifact/ArtifactUtils.java
Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 9496
org/apache/maven/artifact/versioning/VersionRange.java
Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 120122
CollapsibleIfStatements This if statement could be combined with its parent 134137
CollapsibleIfStatements This if statement could be combined with its parent 447449

Priority 4

org/apache/maven/artifact/ArtifactUtils.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ArtifactUtils': 'copyArtifact' is already in scope 167
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ArtifactUtils': 'copyArtifact' is already in scope 175
org/apache/maven/artifact/repository/ArtifactRepositoryPolicy.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ArtifactRepositoryPolicy': 'CHECKSUM_POLICY_FAIL' is already in scope because it is declared in an enclosing type 160
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ArtifactRepositoryPolicy': 'CHECKSUM_POLICY_IGNORE' is already in scope because it is declared in an enclosing type 162
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ArtifactRepositoryPolicy': 'UPDATE_POLICY_DAILY' is already in scope because it is declared in an enclosing type 170
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ArtifactRepositoryPolicy': 'UPDATE_POLICY_ALWAYS' is already in scope because it is declared in an enclosing type 172
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ArtifactRepositoryPolicy': 'UPDATE_POLICY_INTERVAL' is already in scope because it is declared in an enclosing type 174
org/apache/maven/artifact/versioning/ComparableVersion.java
Rule Violation Line
UselessParentheses Useless parentheses. 125
UselessParentheses Useless parentheses. 197
UselessParentheses Useless parentheses. 356
UselessParentheses Useless parentheses. 437
UselessParentheses Useless parentheses. 707

Files

org/apache/maven/artifact/ArtifactUtils.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 9496
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ArtifactUtils': 'copyArtifact' is already in scope 4 167
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ArtifactUtils': 'copyArtifact' is already in scope 4 175

org/apache/maven/artifact/repository/ArtifactRepositoryPolicy.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ArtifactRepositoryPolicy': 'CHECKSUM_POLICY_FAIL' is already in scope because it is declared in an enclosing type 4 160
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ArtifactRepositoryPolicy': 'CHECKSUM_POLICY_IGNORE' is already in scope because it is declared in an enclosing type 4 162
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ArtifactRepositoryPolicy': 'UPDATE_POLICY_DAILY' is already in scope because it is declared in an enclosing type 4 170
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ArtifactRepositoryPolicy': 'UPDATE_POLICY_ALWAYS' is already in scope because it is declared in an enclosing type 4 172
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ArtifactRepositoryPolicy': 'UPDATE_POLICY_INTERVAL' is already in scope because it is declared in an enclosing type 4 174

org/apache/maven/artifact/versioning/ComparableVersion.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 125
UselessParentheses Useless parentheses. 4 197
UselessParentheses Useless parentheses. 4 356
UselessParentheses Useless parentheses. 4 437
UselessParentheses Useless parentheses. 4 707

org/apache/maven/artifact/versioning/VersionRange.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 120122
CollapsibleIfStatements This if statement could be combined with its parent 3 134137
CollapsibleIfStatements This if statement could be combined with its parent 3 447449