PMD Results

The following document contains the results of PMD 5.6.1.

Files

org/codehaus/plexus/archiver/AbstractArchiver.java

Violation Line
Avoid unused imports such as 'org.codehaus.plexus.util.Os' 53
Useless parentheses. 1022

org/codehaus/plexus/archiver/AbstractUnArchiver.java

Violation Line
Useless parentheses. 322

org/codehaus/plexus/archiver/ArchiveEntry.java

Violation Line
Useless parentheses. 75
Useless parentheses. 98
Unnecessary use of fully qualified name 'ResourceFactory.createResource' due to existing static import 'org.codehaus.plexus.components.io.resources.ResourceFactory.createResource' 208

org/codehaus/plexus/archiver/ArchiveFile.java

Violation Line
Avoid modifiers which are implied by the context 1819

org/codehaus/plexus/archiver/Archiver.java

Violation Line
Avoid modifiers which are implied by the context 49
Avoid modifiers which are implied by the context 51
Avoid modifiers which are implied by the context 53
Avoid modifiers which are implied by the context 55
Avoid modifiers which are implied by the context 5770

org/codehaus/plexus/archiver/UnixStat.java

Violation Line
Do not start a literal by 0 unless its an octal value 32
Do not start a literal by 0 unless its an octal value 39
Do not start a literal by 0 unless its an octal value 46
Do not start a literal by 0 unless its an octal value 53
Do not start a literal by 0 unless its an octal value 64
Do not start a literal by 0 unless its an octal value 71
Do not start a literal by 0 unless its an octal value 78

org/codehaus/plexus/archiver/bzip2/BZip2UnArchiver.java

Violation Line
Too many static imports may lead to messy code 1785

org/codehaus/plexus/archiver/diags/DryRunArchiver.java

Violation Line
Useless parentheses. 61

org/codehaus/plexus/archiver/dir/DirectoryArchiver.java

Violation Line
These nested if statements could be combined 148152

org/codehaus/plexus/archiver/jar/JarArchiver.java

Violation Line
Useless parentheses. 282
Useless parentheses. 318
Useless parentheses. 318
Useless parentheses. 318
Useless parentheses. 327
Useless parentheses. 327
Useless parentheses. 500
Useless parentheses. 511
Useless parentheses. 525
Useless parentheses. 721
Useless parentheses. 721

org/codehaus/plexus/archiver/jar/JdkManifestFactory.java

Violation Line
Unnecessary use of fully qualified name 'java.util.jar.Attributes' due to existing import 'java.util.jar.Attributes' 111
Unnecessary use of fully qualified name 'java.util.jar.Attributes' due to existing import 'java.util.jar.Attributes' 111
Unnecessary use of fully qualified name 'java.util.jar.Attributes.Name' due to existing import 'java.util.jar.Attributes' 115

org/codehaus/plexus/archiver/jar/Manifest.java

Violation Line
Useless parentheses. 210
Useless parentheses. 210
Invoke equals() on the object you've already ensured is not null 216
Invoke equals() on the object you've already ensured is not null 669

org/codehaus/plexus/archiver/snappy/SnappyUnArchiver.java

Violation Line
Too many static imports may lead to messy code 1786

org/codehaus/plexus/archiver/tar/TarArchiver.java

Violation Line
Avoid empty if statements 227228
Useless parentheses. 303
Useless parentheses. 306
Useless parentheses. 311
Useless parentheses. 318
Avoid modifiers which are implied by the context 468477
Unnecessary use of fully qualified name 'Streams.bufferedOutputStream' due to existing static import 'org.codehaus.plexus.archiver.util.Streams.bufferedOutputStream' 484

org/codehaus/plexus/archiver/tar/TarFile.java

Violation Line
Unnecessary use of fully qualified name 'java.io.File' due to existing import 'java.io.File' 41
Useless parentheses. 201
Invoke equals() on the object you've already ensured is not null 201

org/codehaus/plexus/archiver/tar/TarUnArchiver.java

Violation Line
Avoid unused method parameters such as 'file'. 143
Avoid modifiers which are implied by the context 168187

org/codehaus/plexus/archiver/war/WarArchiver.java

Violation Line
Useless parentheses. 193196

org/codehaus/plexus/archiver/xz/XZUnArchiver.java

Violation Line
Too many static imports may lead to messy code 1684

org/codehaus/plexus/archiver/zip/AbstractZipArchiver.java

Violation Line
Avoid unused imports such as 'java.io.SequenceInputStream' 25
These nested if statements could be combined 338341

org/codehaus/plexus/archiver/zip/AbstractZipUnArchiver.java

Violation Line
Unnecessary use of fully qualified name 'org.apache.commons.compress.archivers.zip.ZipFile' due to existing import 'org.apache.commons.compress.archivers.zip.ZipFile' 75
Unnecessary use of fully qualified name 'org.apache.commons.compress.archivers.zip.ZipFile' due to existing import 'org.apache.commons.compress.archivers.zip.ZipFile' 79
Unnecessary use of fully qualified name 'org.apache.commons.compress.archivers.zip.ZipFile' due to existing import 'org.apache.commons.compress.archivers.zip.ZipFile' 164
Unnecessary use of fully qualified name 'org.apache.commons.compress.archivers.zip.ZipFile' due to existing import 'org.apache.commons.compress.archivers.zip.ZipFile' 168
Unnecessary use of fully qualified name 'org.apache.commons.compress.archivers.zip.ZipFile' due to existing import 'org.apache.commons.compress.archivers.zip.ZipFile' 229
Unnecessary use of fully qualified name 'org.apache.commons.compress.archivers.zip.ZipFile' due to existing import 'org.apache.commons.compress.archivers.zip.ZipFile' 233

org/codehaus/plexus/archiver/zip/ByteArrayOutputStream.java

Violation Line
Useless parentheses. 168
Useless parentheses. 169
Useless parentheses. 170
Useless parentheses. 171
Useless parentheses. 172

org/codehaus/plexus/archiver/zip/OffloadingOutputStream.java

Violation Line
Avoid unused private fields such as 'closed'. 73

org/codehaus/plexus/archiver/zip/ZipResource.java

Violation Line
Unnecessary use of fully qualified name 'org.apache.commons.compress.archivers.zip.ZipFile' due to existing import 'org.apache.commons.compress.archivers.zip.ZipFile' 22