PMD Results

The following document contains the results of PMD 7.0.0.

Violations By Priority

Priority 3

org/apache/maven/artifact/versioning/VersionRange.java
Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 117119
CollapsibleIfStatements This if statement could be combined with its parent 131134
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 176
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ArtifactUtils': 'copyArtifact' is already in scope 184
org/apache/maven/artifact/DefaultArtifact.java
Rule Violation Line
UselessParentheses Useless parentheses. 180
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 161
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ArtifactRepositoryPolicy': 'CHECKSUM_POLICY_IGNORE' is already in scope because it is declared in an enclosing type 163
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ArtifactRepositoryPolicy': 'UPDATE_POLICY_DAILY' is already in scope because it is declared in an enclosing type 171
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ArtifactRepositoryPolicy': 'UPDATE_POLICY_ALWAYS' is already in scope because it is declared in an enclosing type 173
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ArtifactRepositoryPolicy': 'UPDATE_POLICY_INTERVAL' is already in scope because it is declared in an enclosing type 175
org/apache/maven/artifact/versioning/ComparableVersion.java
Rule Violation Line
UselessParentheses Useless parentheses. 554
UselessParentheses Useless parentheses. 848

Files

org/apache/maven/artifact/ArtifactUtils.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ArtifactUtils': 'copyArtifact' is already in scope 4 176
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ArtifactUtils': 'copyArtifact' is already in scope 4 184

org/apache/maven/artifact/DefaultArtifact.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 180

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 161
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ArtifactRepositoryPolicy': 'CHECKSUM_POLICY_IGNORE' is already in scope because it is declared in an enclosing type 4 163
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ArtifactRepositoryPolicy': 'UPDATE_POLICY_DAILY' is already in scope because it is declared in an enclosing type 4 171
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ArtifactRepositoryPolicy': 'UPDATE_POLICY_ALWAYS' is already in scope because it is declared in an enclosing type 4 173
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ArtifactRepositoryPolicy': 'UPDATE_POLICY_INTERVAL' is already in scope because it is declared in an enclosing type 4 175

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 554
UselessParentheses Useless parentheses. 4 848

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

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