Apache Commons logo Commons VFS

PMD Results

The following document contains the results of PMD 6.8.0.

Files

Apache Commons VFS - org/apache/commons/vfs2/CacheStrategy.java

Violation Priority Line
Unnecessary modifier 'private' on constructor 'CacheStrategy(String)': enum constructors are implicitly private 3 4446

Apache Commons VFS - org/apache/commons/vfs2/FileType.java

Violation Priority Line
Unnecessary modifier 'private' on constructor 'FileType(String, boolean, boolean, boolean)': enum constructors are implicitly private 3 5560

Apache Commons VFS - org/apache/commons/vfs2/NameScope.java

Violation Priority Line
Unnecessary modifier 'private' on constructor 'NameScope(String)': enum constructors are implicitly private 3 5860

Apache Commons VFS - org/apache/commons/vfs2/impl/DefaultFileSystemManager.java

Violation Priority Line
Useless parentheses. 4 781

Apache Commons VFS - org/apache/commons/vfs2/operations/vcs/VcsStatus.java

Violation Priority Line
Unnecessary modifier 'private' on constructor 'VcsStatus(int)': enum constructors are implicitly private 3 3032

Apache Commons VFS - org/apache/commons/vfs2/provider/AbstractFileObject.java

Violation Priority Line
Ternary operators that can be simplified with || or && 3 1437
Ternary operators that can be simplified with || or && 3 1480
Ternary operators that can be simplified with || or && 3 1495
Ternary operators that can be simplified with || or && 3 1744
Ternary operators that can be simplified with || or && 3 1764
Ternary operators that can be simplified with || or && 3 1775

Apache Commons VFS - org/apache/commons/vfs2/provider/AbstractRandomAccessContent.java

Violation Priority Line
Avoid unused constructor parameters such as 'mode'. 3 30

Apache Commons VFS - org/apache/commons/vfs2/provider/UriParser.java

Violation Priority Line
Avoid unused imports such as 'java.util.Set' 4 19
Useless parentheses. 4 392
Useless parentheses. 4 392
Useless parentheses. 4 396
Avoid using a branching statement as the last in a loop. 2 404

Apache Commons VFS - org/apache/commons/vfs2/provider/ftp/FtpClientFactory.java

Violation Priority Line
These nested if statements could be combined 3 193196

Apache Commons VFS - org/apache/commons/vfs2/provider/ftp/FtpFileType.java

Violation Priority Line
Unnecessary modifier 'private' on constructor 'FtpFileType(int)': enum constructors are implicitly private 3 5759

Apache Commons VFS - org/apache/commons/vfs2/provider/hdfs/HdfsFileSystemConfigBuilder.java

Violation Priority Line
Avoid empty catch blocks 3 176178

Apache Commons VFS - org/apache/commons/vfs2/provider/http4/Http4FileContentInfoFactory.java

Violation Priority Line
Unnecessary modifier 'final' on resource specification 'http4File': resource specifications are implicitly final 3 4344

Apache Commons VFS - org/apache/commons/vfs2/provider/http4/Http4FileSystem.java

Violation Priority Line
Useless parentheses. 4 66

Apache Commons VFS - org/apache/commons/vfs2/provider/http/HttpFileContentInfoFactory.java

Violation Priority Line
Unnecessary modifier 'final' on resource specification 'httpFile': resource specifications are implicitly final 3 4243

Apache Commons VFS - org/apache/commons/vfs2/provider/http/HttpFileProvider.java

Violation Priority Line
Useless parentheses. 4 72

Apache Commons VFS - org/apache/commons/vfs2/provider/jar/JarFileSystem.java

Violation Priority Line
Overriding method merely calls super 3 158161

Apache Commons VFS - org/apache/commons/vfs2/provider/local/LocalFileName.java

Violation Priority Line
Avoid empty catch blocks 3 8789
Avoid empty catch blocks 3 111113

Apache Commons VFS - org/apache/commons/vfs2/provider/local/LocalFileNameParser.java

Violation Priority Line
Avoid unused imports such as 'org.apache.commons.vfs2.VFS' 4 22

Apache Commons VFS - org/apache/commons/vfs2/provider/ram/RamFileRandomAccessContent.java

Violation Priority Line
Avoid unused constructor parameters such as 'mode'. 3 74
Useless parentheses. 4 383385
Useless parentheses. 4 431

Apache Commons VFS - org/apache/commons/vfs2/provider/sftp/SftpFileObject.java

Violation Priority Line
Ternary operators that can be simplified with || or && 3 259
Avoid empty finally blocks 3 479481

Apache Commons VFS - org/apache/commons/vfs2/provider/sftp/SftpFileSystem.java

Violation Priority Line
Unnecessary modifier 'final' on resource specification 'stream': resource specifications are implicitly final 3 276
Avoid empty catch blocks 3 292294

Apache Commons VFS - org/apache/commons/vfs2/provider/sftp/SftpFileSystemConfigBuilder.java

Violation Priority Line
Useless parentheses. 4 646647

Apache Commons VFS - org/apache/commons/vfs2/provider/tar/TarFileSystem.java

Violation Priority Line
Avoid empty while statements 3 125126

Apache Commons VFS - org/apache/commons/vfs2/provider/webdav/ExceptionConverter.java

Violation Priority Line
These nested if statements could be combined 3 4966

Apache Commons VFS - org/apache/commons/vfs2/provider/webdav/WebdavFileObject.java

Violation Priority Line
Avoid empty catch blocks 3 141143
Avoid empty catch blocks 3 159161
Avoid empty catch blocks 3 170172
Avoid empty catch blocks 3 186188

Apache Commons VFS - org/apache/commons/vfs2/provider/webdav/WebdavFileSystem.java

Violation Priority Line
Overriding method merely calls super 3 4346

Apache Commons VFS - org/apache/commons/vfs2/provider/zip/ZipFileProvider.java

Violation Priority Line
Avoid unused imports such as 'org.apache.commons.vfs2.provider.hdfs.HdfsFileSystemConfigBuilder' 4 34

Apache Commons VFS - org/apache/commons/vfs2/tasks/DeleteTask.java

Violation Priority Line
Useless parentheses. 4 69
Useless parentheses. 4 69

Apache Commons VFS - org/apache/commons/vfs2/tasks/ShowFileTask.java

Violation Priority Line
Unnecessary modifier 'final' on resource specification 'instr': resource specifications are implicitly final 3 125
Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 3 126

Apache Commons VFS - org/apache/commons/vfs2/util/PosixPermissions.java

Violation Priority Line
Unnecessary modifier 'static' on enum 'Type': nested enums are implicitly static 3 3397
Do not start a literal by 0 unless its an octal value 3 37
Do not start a literal by 0 unless its an octal value 3 42
Do not start a literal by 0 unless its an octal value 3 47
Do not start a literal by 0 unless its an octal value 3 52
Do not start a literal by 0 unless its an octal value 3 57
Do not start a literal by 0 unless its an octal value 3 62
Do not start a literal by 0 unless its an octal value 3 67
Do not start a literal by 0 unless its an octal value 3 72
Do not start a literal by 0 unless its an octal value 3 77
Unnecessary modifier 'private' on constructor 'Type(int)': enum constructors are implicitly private 3 8486

Apache Commons VFS - org/apache/commons/vfs2/util/RandomAccessMode.java

Violation Priority Line
Unnecessary modifier 'private' on constructor 'RandomAccessMode(boolean, boolean)': enum constructors are implicitly private 3 3639