PMD Results
The following document contains the results of PMD 7.17.0.
Violations By Priority
Priority 3
org/codehaus/plexus/archiver/AbstractArchiver.java
| Rule |
Violation |
Line |
| AvoidUsingOctalValues |
Avoid integer literals that start with zero (interpreted as octal), remove the leading 0 to get a decimal literal (or use explicit 0x, 0b prefixes) |
1130 |
org/codehaus/plexus/archiver/UnixStat.java
| Rule |
Violation |
Line |
| AvoidUsingOctalValues |
Avoid integer literals that start with zero (interpreted as octal), remove the leading 0 to get a decimal literal (or use explicit 0x, 0b prefixes) |
31 |
| AvoidUsingOctalValues |
Avoid integer literals that start with zero (interpreted as octal), remove the leading 0 to get a decimal literal (or use explicit 0x, 0b prefixes) |
38 |
| AvoidUsingOctalValues |
Avoid integer literals that start with zero (interpreted as octal), remove the leading 0 to get a decimal literal (or use explicit 0x, 0b prefixes) |
45 |
| AvoidUsingOctalValues |
Avoid integer literals that start with zero (interpreted as octal), remove the leading 0 to get a decimal literal (or use explicit 0x, 0b prefixes) |
52 |
| AvoidUsingOctalValues |
Avoid integer literals that start with zero (interpreted as octal), remove the leading 0 to get a decimal literal (or use explicit 0x, 0b prefixes) |
63 |
| AvoidUsingOctalValues |
Avoid integer literals that start with zero (interpreted as octal), remove the leading 0 to get a decimal literal (or use explicit 0x, 0b prefixes) |
70 |
| AvoidUsingOctalValues |
Avoid integer literals that start with zero (interpreted as octal), remove the leading 0 to get a decimal literal (or use explicit 0x, 0b prefixes) |
77 |
org/codehaus/plexus/archiver/bzip2/BZip2UnArchiver.java
org/codehaus/plexus/archiver/dir/DirectoryArchiver.java
org/codehaus/plexus/archiver/snappy/SnappyUnArchiver.java
org/codehaus/plexus/archiver/tar/TarArchiver.java
org/codehaus/plexus/archiver/tar/TarUnArchiver.java
org/codehaus/plexus/archiver/tar/TarZstdArchiver.java
| Rule |
Violation |
Line |
| UnnecessaryModifier |
Unnecessary modifier 'final' on method 'setupCompressionMethod': private methods cannot be overridden |
32 |
org/codehaus/plexus/archiver/tar/TarZstdUnArchiver.java
| Rule |
Violation |
Line |
| UnnecessaryModifier |
Unnecessary modifier 'final' on method 'setupCompressionMethod': private methods cannot be overridden |
38 |
org/codehaus/plexus/archiver/xz/XZUnArchiver.java
org/codehaus/plexus/archiver/zip/AbstractZipArchiver.java
org/codehaus/plexus/archiver/zstd/ZstdUnArchiver.java
Priority 4
org/codehaus/plexus/archiver/AbstractArchiver.java
org/codehaus/plexus/archiver/AbstractUnArchiver.java
org/codehaus/plexus/archiver/ArchiveEntry.java
org/codehaus/plexus/archiver/jar/JarToolModularJarArchiver.java
| Rule |
Violation |
Line |
| UselessParentheses |
Useless parentheses around `cal.get(Calendar.ZONE_OFFSET) + cal.get(Calenda...`. |
270 |
org/codehaus/plexus/archiver/jar/JdkManifestFactory.java
org/codehaus/plexus/archiver/tar/TarFile.java
org/codehaus/plexus/archiver/tar/TarResource.java
| Rule |
Violation |
Line |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'PlexusIoResource': 'UNKNOWN_RESOURCE_SIZE' is already in scope because it is inherited by an enclosing type |
28 |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'PlexusIoResource': 'UNKNOWN_MODIFICATION_DATE' is already in scope because it is inherited by an enclosing type |
39 |
org/codehaus/plexus/archiver/tar/TarUnArchiver.java
org/codehaus/plexus/archiver/zip/AbstractZipArchiver.java
org/codehaus/plexus/archiver/zip/AbstractZipUnArchiver.java
| Rule |
Violation |
Line |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'org.apache.commons.compress.archivers.zip': 'ZipFile' is already in scope because it is imported in this file |
82 |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'org.apache.commons.compress.archivers.zip': 'ZipFile' is already in scope because it is imported in this file |
87 |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'PlexusIoResource': 'UNKNOWN_MODIFICATION_DATE' is already in scope because it is inherited by an enclosing type |
120 |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'PlexusIoResource': 'UNKNOWN_RESOURCE_SIZE' is already in scope because it is inherited by an enclosing type |
126 |
org/codehaus/plexus/archiver/zip/PlexusIoJarFileResourceCollectionWithSignatureVerification.java
| Rule |
Violation |
Line |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'PlexusIoResource': 'UNKNOWN_MODIFICATION_DATE' is already in scope because it is inherited by an enclosing type |
90 |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'PlexusIoResource': 'UNKNOWN_RESOURCE_SIZE' is already in scope because it is inherited by an enclosing type |
91 |
org/codehaus/plexus/archiver/zip/ZipResource.java
| Rule |
Violation |
Line |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'org.apache.commons.compress.archivers.zip': 'ZipFile' is already in scope because it is imported in this file |
22 |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'PlexusIoResource': 'UNKNOWN_RESOURCE_SIZE' is already in scope because it is inherited by an enclosing type |
34 |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'PlexusIoResource': 'UNKNOWN_MODIFICATION_DATE' is already in scope because it is inherited by an enclosing type |
46 |
Files
org/codehaus/plexus/archiver/AbstractArchiver.java
| Rule |
Violation |
Priority |
Line |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'Archiver': 'DUPLICATES_SKIP' is already in scope because it is inherited by an enclosing type |
4 |
99 |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'Archiver': 'DUPLICATES_VALID_BEHAVIORS' is already in scope because it is inherited by an enclosing type |
4 |
182 |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'Archiver': 'DUPLICATES_VALID_BEHAVIORS' is already in scope because it is inherited by an enclosing type |
4 |
184 |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'Archiver': 'DUPLICATES_PRESERVE' is already in scope because it is inherited by an enclosing type |
4 |
551 |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'Archiver': 'DUPLICATES_SKIP' is already in scope because it is inherited by an enclosing type |
4 |
552 |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'Archiver': 'DUPLICATES_FAIL' is already in scope because it is inherited by an enclosing type |
4 |
558 |
| AvoidUsingOctalValues |
Avoid integer literals that start with zero (interpreted as octal), remove the leading 0 to get a decimal literal (or use explicit 0x, 0b prefixes) |
3 |
1130 |
org/codehaus/plexus/archiver/AbstractUnArchiver.java
| Rule |
Violation |
Priority |
Line |
| UselessParentheses |
Useless parentheses around `entryIsDirectory ? "/" : ""`. |
4 |
372 |
org/codehaus/plexus/archiver/ArchiveEntry.java
org/codehaus/plexus/archiver/UnixStat.java
| Rule |
Violation |
Priority |
Line |
| AvoidUsingOctalValues |
Avoid integer literals that start with zero (interpreted as octal), remove the leading 0 to get a decimal literal (or use explicit 0x, 0b prefixes) |
3 |
31 |
| AvoidUsingOctalValues |
Avoid integer literals that start with zero (interpreted as octal), remove the leading 0 to get a decimal literal (or use explicit 0x, 0b prefixes) |
3 |
38 |
| AvoidUsingOctalValues |
Avoid integer literals that start with zero (interpreted as octal), remove the leading 0 to get a decimal literal (or use explicit 0x, 0b prefixes) |
3 |
45 |
| AvoidUsingOctalValues |
Avoid integer literals that start with zero (interpreted as octal), remove the leading 0 to get a decimal literal (or use explicit 0x, 0b prefixes) |
3 |
52 |
| AvoidUsingOctalValues |
Avoid integer literals that start with zero (interpreted as octal), remove the leading 0 to get a decimal literal (or use explicit 0x, 0b prefixes) |
3 |
63 |
| AvoidUsingOctalValues |
Avoid integer literals that start with zero (interpreted as octal), remove the leading 0 to get a decimal literal (or use explicit 0x, 0b prefixes) |
3 |
70 |
| AvoidUsingOctalValues |
Avoid integer literals that start with zero (interpreted as octal), remove the leading 0 to get a decimal literal (or use explicit 0x, 0b prefixes) |
3 |
77 |
org/codehaus/plexus/archiver/bzip2/BZip2UnArchiver.java
org/codehaus/plexus/archiver/dir/DirectoryArchiver.java
org/codehaus/plexus/archiver/jar/JarToolModularJarArchiver.java
| Rule |
Violation |
Priority |
Line |
| UselessParentheses |
Useless parentheses around `cal.get(Calendar.ZONE_OFFSET) + cal.get(Calenda...`. |
4 |
270 |
org/codehaus/plexus/archiver/jar/JdkManifestFactory.java
org/codehaus/plexus/archiver/snappy/SnappyUnArchiver.java
org/codehaus/plexus/archiver/tar/TarArchiver.java
org/codehaus/plexus/archiver/tar/TarFile.java
| Rule |
Violation |
Priority |
Line |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'java.io': 'File' is already in scope because it is imported in this file |
4 |
41 |
org/codehaus/plexus/archiver/tar/TarResource.java
| Rule |
Violation |
Priority |
Line |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'PlexusIoResource': 'UNKNOWN_RESOURCE_SIZE' is already in scope because it is inherited by an enclosing type |
4 |
28 |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'PlexusIoResource': 'UNKNOWN_MODIFICATION_DATE' is already in scope because it is inherited by an enclosing type |
4 |
39 |
org/codehaus/plexus/archiver/tar/TarUnArchiver.java
org/codehaus/plexus/archiver/tar/TarZstdArchiver.java
| Rule |
Violation |
Priority |
Line |
| UnnecessaryModifier |
Unnecessary modifier 'final' on method 'setupCompressionMethod': private methods cannot be overridden |
3 |
32 |
org/codehaus/plexus/archiver/tar/TarZstdUnArchiver.java
| Rule |
Violation |
Priority |
Line |
| UnnecessaryModifier |
Unnecessary modifier 'final' on method 'setupCompressionMethod': private methods cannot be overridden |
3 |
38 |
org/codehaus/plexus/archiver/xz/XZUnArchiver.java
org/codehaus/plexus/archiver/zip/AbstractZipArchiver.java
org/codehaus/plexus/archiver/zip/AbstractZipUnArchiver.java
| Rule |
Violation |
Priority |
Line |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'org.apache.commons.compress.archivers.zip': 'ZipFile' is already in scope because it is imported in this file |
4 |
82 |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'org.apache.commons.compress.archivers.zip': 'ZipFile' is already in scope because it is imported in this file |
4 |
87 |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'PlexusIoResource': 'UNKNOWN_MODIFICATION_DATE' is already in scope because it is inherited by an enclosing type |
4 |
120 |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'PlexusIoResource': 'UNKNOWN_RESOURCE_SIZE' is already in scope because it is inherited by an enclosing type |
4 |
126 |
org/codehaus/plexus/archiver/zip/PlexusIoJarFileResourceCollectionWithSignatureVerification.java
| Rule |
Violation |
Priority |
Line |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'PlexusIoResource': 'UNKNOWN_MODIFICATION_DATE' is already in scope because it is inherited by an enclosing type |
4 |
90 |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'PlexusIoResource': 'UNKNOWN_RESOURCE_SIZE' is already in scope because it is inherited by an enclosing type |
4 |
91 |
org/codehaus/plexus/archiver/zip/ZipResource.java
| Rule |
Violation |
Priority |
Line |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'org.apache.commons.compress.archivers.zip': 'ZipFile' is already in scope because it is imported in this file |
4 |
22 |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'PlexusIoResource': 'UNKNOWN_RESOURCE_SIZE' is already in scope because it is inherited by an enclosing type |
4 |
34 |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'PlexusIoResource': 'UNKNOWN_MODIFICATION_DATE' is already in scope because it is inherited by an enclosing type |
4 |
46 |
org/codehaus/plexus/archiver/zstd/ZstdUnArchiver.java