PMD Results
The following document contains the results of PMD 7.0.0.
Violations By Priority
Priority 3
org/apache/maven/artifact/deployer/DefaultArtifactDeployer.java
org/apache/maven/artifact/installer/DefaultArtifactInstaller.java
org/apache/maven/artifact/repository/DefaultArtifactRepository.java
org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.java
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
org/apache/maven/project/path/DefaultPathTranslator.java
org/apache/maven/repository/DefaultMirrorSelector.java
org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java
org/apache/maven/repository/legacy/DefaultWagonManager.java
org/apache/maven/repository/legacy/resolver/DefaultLegacyArtifactCollector.java
org/apache/maven/repository/metadata/ArtifactMetadata.java
org/apache/maven/repository/metadata/DefaultGraphConflictResolver.java
org/apache/maven/repository/metadata/MetadataGraph.java
org/apache/maven/repository/metadata/MetadataGraphEdge.java
Priority 4
org/apache/maven/artifact/metadata/AbstractArtifactMetadata.java
Rule |
Violation |
Line |
UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'org.apache.maven.artifact.metadata': 'ArtifactMetadata' is already in scope because it is declared in the same package |
29 |
org/apache/maven/artifact/repository/metadata/AbstractRepositoryMetadata.java
Rule |
Violation |
Line |
UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'RepositoryMetadata': 'RELEASE_OR_SNAPSHOT' is already in scope because it is inherited by an enclosing type |
178 |
UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'RepositoryMetadata': 'RELEASE_OR_SNAPSHOT' is already in scope because it is inherited by an enclosing type |
178 |
UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'RepositoryMetadata': 'SNAPSHOT' is already in scope because it is inherited by an enclosing type |
182 |
org/apache/maven/project/interpolation/AbstractStringBasedModelInterpolator.java
org/apache/maven/repository/DefaultMirrorSelector.java
org/apache/maven/repository/legacy/LegacyRepositorySystem.java
Rule |
Violation |
Line |
UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'RepositorySystem': 'defaultUserLocalRepository' is already in scope because it is inherited by an enclosing type |
237 |
UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'RepositorySystem': 'DEFAULT_LOCAL_REPO_ID' is already in scope because it is inherited by an enclosing type |
243 |
UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'RepositorySystem': 'DEFAULT_REMOTE_REPO_URL' is already in scope because it is inherited by an enclosing type |
253 |
UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'RepositorySystem': 'DEFAULT_REMOTE_REPO_ID' is already in scope because it is inherited by an enclosing type |
254 |
org/apache/maven/repository/legacy/resolver/transform/SnapshotTransformation.java
org/apache/maven/repository/metadata/MetadataGraphEdge.java
org/apache/maven/settings/DefaultMavenSettingsBuilder.java
Rule |
Violation |
Line |
UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'MavenSettingsBuilder': 'ALT_USER_SETTINGS_XML_LOCATION' is already in scope because it is inherited by an enclosing type |
53 |
UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'MavenSettingsBuilder': 'ALT_GLOBAL_SETTINGS_XML_LOCATION' is already in scope because it is inherited by an enclosing type |
64 |
Files
org/apache/maven/artifact/deployer/DefaultArtifactDeployer.java
org/apache/maven/artifact/installer/DefaultArtifactInstaller.java
org/apache/maven/artifact/metadata/AbstractArtifactMetadata.java
Rule |
Violation |
Priority |
Line |
UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'org.apache.maven.artifact.metadata': 'ArtifactMetadata' is already in scope because it is declared in the same package |
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/repository/metadata/AbstractRepositoryMetadata.java
Rule |
Violation |
Priority |
Line |
UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'RepositoryMetadata': 'RELEASE_OR_SNAPSHOT' is already in scope because it is inherited by an enclosing type |
4 |
178 |
UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'RepositoryMetadata': 'RELEASE_OR_SNAPSHOT' is already in scope because it is inherited by an enclosing type |
4 |
178 |
UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'RepositoryMetadata': 'SNAPSHOT' is already in scope because it is inherited by an enclosing type |
4 |
182 |
org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.java
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/AbstractStringBasedModelInterpolator.java
org/apache/maven/project/interpolation/RegexBasedModelInterpolator.java
org/apache/maven/project/path/DefaultPathTranslator.java
org/apache/maven/repository/DefaultMirrorSelector.java
org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java
org/apache/maven/repository/legacy/DefaultWagonManager.java
org/apache/maven/repository/legacy/LegacyRepositorySystem.java
Rule |
Violation |
Priority |
Line |
UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'RepositorySystem': 'defaultUserLocalRepository' is already in scope because it is inherited by an enclosing type |
4 |
237 |
UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'RepositorySystem': 'DEFAULT_LOCAL_REPO_ID' is already in scope because it is inherited by an enclosing type |
4 |
243 |
UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'RepositorySystem': 'DEFAULT_REMOTE_REPO_URL' is already in scope because it is inherited by an enclosing type |
4 |
253 |
UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'RepositorySystem': 'DEFAULT_REMOTE_REPO_ID' is already in scope because it is inherited by an enclosing type |
4 |
254 |
org/apache/maven/repository/legacy/resolver/DefaultLegacyArtifactCollector.java
org/apache/maven/repository/legacy/resolver/transform/SnapshotTransformation.java
org/apache/maven/repository/metadata/ArtifactMetadata.java
org/apache/maven/repository/metadata/DefaultGraphConflictResolver.java
org/apache/maven/repository/metadata/MetadataGraph.java
org/apache/maven/repository/metadata/MetadataGraphEdge.java
org/apache/maven/settings/DefaultMavenSettingsBuilder.java
Rule |
Violation |
Priority |
Line |
UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'MavenSettingsBuilder': 'ALT_USER_SETTINGS_XML_LOCATION' is already in scope because it is inherited by an enclosing type |
4 |
53 |
UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'MavenSettingsBuilder': 'ALT_GLOBAL_SETTINGS_XML_LOCATION' is already in scope because it is inherited by an enclosing type |
4 |
64 |