PMD Results
The following document contains the results of PMD 6.46.0.
Violations By Priority
Priority 3
org/apache/maven/artifact/deployer/DefaultArtifactDeployer.java
Rule | Violation | Line |
---|---|---|
EmptyControlStatement | Empty if statement | 113–121 |
org/apache/maven/artifact/installer/DefaultArtifactInstaller.java
Rule | Violation | Line |
---|---|---|
EmptyControlStatement | Empty if statement | 94–102 |
org/apache/maven/artifact/repository/DefaultArtifactRepository.java
Rule | Violation | Line |
---|---|---|
UnusedFormalParameter | Avoid unused constructor parameters such as 'uniqueVersion'. | 79 |
org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 141–153 |
CollapsibleIfStatements | These nested if statements could be combined | 441–453 |
org/apache/maven/artifact/resolver/DefaultArtifactResolver.java
Rule | Violation | Line |
---|---|---|
AvoidThreadGroup | Avoid using java.lang.ThreadGroup; it is not thread safe | 571 |
org/apache/maven/artifact/resolver/WarningResolutionListener.java
Rule | Violation | Line |
---|---|---|
UnusedPrivateField | Avoid unused private fields such as 'logger'. | 34 |
org/apache/maven/project/interpolation/RegexBasedModelInterpolator.java
Rule | Violation | Line |
---|---|---|
UnusedFormalParameter | Avoid unused constructor parameters such as 'envars'. | 50 |
org/apache/maven/project/path/DefaultPathTranslator.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 168–171 |
org/apache/maven/repository/DefaultMirrorSelector.java
Rule | Violation | Line |
---|---|---|
AvoidUsingHardCodedIP | Do not hard code the IP address | 163 |
org/apache/maven/repository/MetadataResolutionResult.java
Rule | Violation | Line |
---|---|---|
UnusedPrivateField | Avoid unused private fields such as 'dirtyTree'. | 66 |
UnusedPrivateField | Avoid unused private fields such as 'resolvedGraph'. | 70 |
org/apache/maven/repository/legacy/DefaultWagonManager.java
Rule | Violation | Line |
---|---|---|
UnusedFormalParameter | Avoid unused method parameters such as 'protocol'. | 803 |
org/apache/maven/repository/legacy/resolver/DefaultLegacyArtifactCollector.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 183–191 |
org/apache/maven/repository/metadata/ArtifactMetadata.java
Rule | Violation | Line |
---|---|---|
UnusedFormalParameter | Avoid unused constructor parameters such as 'af'. | 149 |
org/apache/maven/repository/metadata/DefaultGraphConflictResolver.java
Rule | Violation | Line |
---|---|---|
EmptyControlStatement | Empty else statement | 110–116 |
UnusedFormalParameter | Avoid unused method parameters such as 'v'. | 206 |
org/apache/maven/repository/metadata/MetadataGraph.java
Rule | Violation | Line |
---|---|---|
UnusedFormalParameter | Avoid unused method parameters such as 'nVertices'. | 244 |
org/apache/maven/repository/metadata/MetadataGraphEdge.java
Rule | Violation | Line |
---|---|---|
OverrideBothEqualsAndHashcode | Ensure you override both equals() and hashCode() | 85 |
Priority 4
org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 252 |
UselessParentheses | Useless parentheses. | 252 |
UselessParentheses | Useless parentheses. | 296 |
org/apache/maven/project/interpolation/AbstractStringBasedModelInterpolator.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 338 |
UselessParentheses | Useless parentheses. | 342 |
org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 110 |
UselessParentheses | Useless parentheses. | 150 |
org/apache/maven/repository/legacy/resolver/DefaultLegacyArtifactCollector.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 276 |
UselessParentheses | Useless parentheses. | 276 |
UselessParentheses | Useless parentheses. | 379 |
UselessParentheses | Useless parentheses. | 379 |
UselessParentheses | Useless parentheses. | 635 |
UselessParentheses | Useless parentheses. | 642 |
UselessParentheses | Useless parentheses. | 648 |
UselessParentheses | Useless parentheses. | 649 |
UselessParentheses | Useless parentheses. | 686 |
org/apache/maven/repository/legacy/resolver/transform/SnapshotTransformation.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 158 |
UselessParentheses | Useless parentheses. | 159 |
org/apache/maven/repository/metadata/MetadataGraphEdge.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 184 |
UselessParentheses | Useless parentheses. | 185 |
Files
org/apache/maven/artifact/deployer/DefaultArtifactDeployer.java
Rule | Violation | Priority | Line |
---|---|---|---|
EmptyControlStatement | Empty if statement | 3 | 113–121 |
org/apache/maven/artifact/installer/DefaultArtifactInstaller.java
Rule | Violation | Priority | Line |
---|---|---|---|
EmptyControlStatement | Empty if statement | 3 | 94–102 |
org/apache/maven/artifact/repository/DefaultArtifactRepository.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedFormalParameter | Avoid unused constructor parameters such as 'uniqueVersion'. | 3 | 79 |
org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.java
Rule | Violation | Priority | Line |
---|---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 3 | 141–153 |
UselessParentheses | Useless parentheses. | 4 | 252 |
UselessParentheses | Useless parentheses. | 4 | 252 |
UselessParentheses | Useless parentheses. | 4 | 296 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 441–453 |
org/apache/maven/artifact/resolver/DefaultArtifactResolver.java
Rule | Violation | Priority | Line |
---|---|---|---|
AvoidThreadGroup | Avoid using java.lang.ThreadGroup; it is not thread safe | 3 | 571 |
org/apache/maven/artifact/resolver/WarningResolutionListener.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedPrivateField | Avoid unused private fields such as 'logger'. | 3 | 34 |
org/apache/maven/project/interpolation/AbstractStringBasedModelInterpolator.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 338 |
UselessParentheses | Useless parentheses. | 4 | 342 |
org/apache/maven/project/interpolation/RegexBasedModelInterpolator.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedFormalParameter | Avoid unused constructor parameters such as 'envars'. | 3 | 50 |
org/apache/maven/project/path/DefaultPathTranslator.java
Rule | Violation | Priority | Line |
---|---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 3 | 168–171 |
org/apache/maven/repository/DefaultMirrorSelector.java
Rule | Violation | Priority | Line |
---|---|---|---|
AvoidUsingHardCodedIP | Do not hard code the IP address | 3 | 163 |
org/apache/maven/repository/MetadataResolutionResult.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedPrivateField | Avoid unused private fields such as 'dirtyTree'. | 3 | 66 |
UnusedPrivateField | Avoid unused private fields such as 'resolvedGraph'. | 3 | 70 |
org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 110 |
UselessParentheses | Useless parentheses. | 4 | 150 |
org/apache/maven/repository/legacy/DefaultWagonManager.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedFormalParameter | Avoid unused method parameters such as 'protocol'. | 3 | 803 |
org/apache/maven/repository/legacy/resolver/DefaultLegacyArtifactCollector.java
Rule | Violation | Priority | Line |
---|---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 3 | 183–191 |
UselessParentheses | Useless parentheses. | 4 | 276 |
UselessParentheses | Useless parentheses. | 4 | 276 |
UselessParentheses | Useless parentheses. | 4 | 379 |
UselessParentheses | Useless parentheses. | 4 | 379 |
UselessParentheses | Useless parentheses. | 4 | 635 |
UselessParentheses | Useless parentheses. | 4 | 642 |
UselessParentheses | Useless parentheses. | 4 | 648 |
UselessParentheses | Useless parentheses. | 4 | 649 |
UselessParentheses | Useless parentheses. | 4 | 686 |
org/apache/maven/repository/legacy/resolver/transform/SnapshotTransformation.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 158 |
UselessParentheses | Useless parentheses. | 4 | 159 |
org/apache/maven/repository/metadata/ArtifactMetadata.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedFormalParameter | Avoid unused constructor parameters such as 'af'. | 3 | 149 |
org/apache/maven/repository/metadata/DefaultGraphConflictResolver.java
Rule | Violation | Priority | Line |
---|---|---|---|
EmptyControlStatement | Empty else statement | 3 | 110–116 |
UnusedFormalParameter | Avoid unused method parameters such as 'v'. | 3 | 206 |
org/apache/maven/repository/metadata/MetadataGraph.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedFormalParameter | Avoid unused method parameters such as 'nVertices'. | 3 | 244 |
org/apache/maven/repository/metadata/MetadataGraphEdge.java
Rule | Violation | Priority | Line |
---|---|---|---|
OverrideBothEqualsAndHashcode | Ensure you override both equals() and hashCode() | 3 | 85 |
UselessParentheses | Useless parentheses. | 4 | 184 |
UselessParentheses | Useless parentheses. | 4 | 185 |