PMD Results
The following document contains the results of PMD 6.55.0.
Violations By Priority
Priority 3
org/apache/maven/artifact/installer/DefaultArtifactInstaller.java
| Rule |
Violation |
Line |
| EmptyControlStatement |
Empty if statement |
88–93 |
org/apache/maven/artifact/repository/DefaultArtifactRepository.java
| Rule |
Violation |
Line |
| UnusedFormalParameter |
Avoid unused constructor parameters such as 'uniqueVersion'. |
73 |
org/apache/maven/artifact/resolver/DefaultArtifactResolver.java
| Rule |
Violation |
Line |
| AvoidThreadGroup |
Avoid using java.lang.ThreadGroup; it is not thread safe |
539 |
org/apache/maven/project/interpolation/RegexBasedModelInterpolator.java
| Rule |
Violation |
Line |
| UnusedFormalParameter |
Avoid unused constructor parameters such as 'envars'. |
42 |
org/apache/maven/project/path/DefaultPathTranslator.java
| Rule |
Violation |
Line |
| CollapsibleIfStatements |
These nested if statements could be combined |
142–144 |
org/apache/maven/repository/DefaultMirrorSelector.java
| Rule |
Violation |
Line |
| AvoidUsingHardCodedIP |
Do not hard code the IP address |
139 |
org/apache/maven/repository/legacy/DefaultWagonManager.java
| Rule |
Violation |
Line |
| UnusedFormalParameter |
Avoid unused method parameters such as 'protocol'. |
675 |
org/apache/maven/repository/legacy/resolver/DefaultLegacyArtifactCollector.java
| Rule |
Violation |
Line |
| CollapsibleIfStatements |
These nested if statements could be combined |
176–183 |
org/apache/maven/repository/metadata/ArtifactMetadata.java
| Rule |
Violation |
Line |
| UnusedFormalParameter |
Avoid unused constructor parameters such as 'af'. |
172 |
org/apache/maven/repository/metadata/MetadataGraph.java
| Rule |
Violation |
Line |
| UnusedFormalParameter |
Avoid unused method parameters such as 'nVertices'. |
218 |
org/apache/maven/repository/metadata/MetadataGraphEdge.java
| Rule |
Violation |
Line |
| OverrideBothEqualsAndHashcode |
Ensure you override both equals() and hashCode() |
79 |
Priority 4
org/apache/maven/artifact/metadata/AbstractArtifactMetadata.java
| Rule |
Violation |
Line |
| UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'org.apache.maven.artifact.metadata.ArtifactMetadata' due to existing same package import 'org.apache.maven.artifact.metadata.*' |
29 |
org/apache/maven/repository/DefaultMirrorSelector.java
| Rule |
Violation |
Line |
| UselessParentheses |
Useless parentheses. |
178 |
Files
org/apache/maven/artifact/deployer/DefaultArtifactDeployer.java
| Rule |
Violation |
Priority |
Line |
| EmptyControlStatement |
Empty if statement |
3 |
109–114 |
org/apache/maven/artifact/installer/DefaultArtifactInstaller.java
| Rule |
Violation |
Priority |
Line |
| EmptyControlStatement |
Empty if statement |
3 |
88–93 |
org/apache/maven/artifact/metadata/AbstractArtifactMetadata.java
| Rule |
Violation |
Priority |
Line |
| UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'org.apache.maven.artifact.metadata.ArtifactMetadata' due to existing same package import 'org.apache.maven.artifact.metadata.*' |
4 |
29 |
org/apache/maven/artifact/repository/DefaultArtifactRepository.java
| Rule |
Violation |
Priority |
Line |
| UnusedFormalParameter |
Avoid unused constructor parameters such as 'uniqueVersion'. |
3 |
73 |
org/apache/maven/artifact/resolver/DefaultArtifactResolver.java
| Rule |
Violation |
Priority |
Line |
| AvoidThreadGroup |
Avoid using java.lang.ThreadGroup; it is not thread safe |
3 |
539 |
org/apache/maven/project/interpolation/RegexBasedModelInterpolator.java
| Rule |
Violation |
Priority |
Line |
| UnusedFormalParameter |
Avoid unused constructor parameters such as 'envars'. |
3 |
42 |
org/apache/maven/project/path/DefaultPathTranslator.java
| Rule |
Violation |
Priority |
Line |
| CollapsibleIfStatements |
These nested if statements could be combined |
3 |
142–144 |
org/apache/maven/repository/legacy/DefaultWagonManager.java
| Rule |
Violation |
Priority |
Line |
| UnusedFormalParameter |
Avoid unused method parameters such as 'protocol'. |
3 |
675 |
org/apache/maven/repository/metadata/ArtifactMetadata.java
| Rule |
Violation |
Priority |
Line |
| UnusedFormalParameter |
Avoid unused constructor parameters such as 'af'. |
3 |
172 |
org/apache/maven/repository/metadata/MetadataGraph.java
| Rule |
Violation |
Priority |
Line |
| UnusedFormalParameter |
Avoid unused method parameters such as 'nVertices'. |
3 |
218 |