The following document contains the results of SpotBugs
SpotBugs Version is 4.7.1
Threshold is medium
Effort is default
Classes | Bugs | Errors | Missing Classes |
---|---|---|---|
20 | 22 | 0 | 0 |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Possible null pointer dereference in org.mycore.datamodel.niofs.ifs2.MCRDirectoryStreamHelper$MCRFileCollectionFilter.accept(Path) due to return value of called method | STYLE | NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE | 95 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Possible null pointer dereference in org.mycore.datamodel.niofs.ifs2.MCRDirectoryStreamHelper$SecureDirectoryStream.getMCRFile(MCRDirectoryStreamHelper$SecureDirectoryStream, Path) due to return value of called method | STYLE | NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE | 259 | Medium |
Possible null pointer dereference in org.mycore.datamodel.niofs.ifs2.MCRDirectoryStreamHelper$SecureDirectoryStream.getMCRFile(MCRDirectoryStreamHelper$SecureDirectoryStream, Path) due to return value of called method | STYLE | NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE | 267 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Possible null pointer dereference in org.mycore.datamodel.niofs.ifs2.MCRDirectoryStreamHelper$SimpleDirectoryIterator.next() due to return value of called method | STYLE | NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE | 337 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
new org.mycore.datamodel.niofs.ifs2.MCRFileChannel(MCRPath, MCRFile, FileChannel, boolean, boolean) may expose internal representation by storing an externally mutable object into MCRFileChannel.baseChannel | MALICIOUS_CODE | EI_EXPOSE_REP2 | 58 | Medium |
new org.mycore.datamodel.niofs.ifs2.MCRFileChannel(MCRPath, MCRFile, FileChannel, boolean, boolean) may expose internal representation by storing an externally mutable object into MCRFileChannel.file | MALICIOUS_CODE | EI_EXPOSE_REP2 | 57 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Possible double-check on org.mycore.datamodel.niofs.ifs2.MCRFileSystemProvider.FILE_SYSTEM_INSTANCE in org.mycore.datamodel.niofs.ifs2.MCRFileSystemProvider.getFileSystem(URI) | MT_CORRECTNESS | DC_DOUBLECHECK | 115-117 | Medium |
Possible null pointer dereference in org.mycore.datamodel.niofs.ifs2.MCRFileSystemProvider.copyDirectory(MCRDirectory, MCRPath, HashSet) due to return value of called method | STYLE | NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE | 335 | Medium |
Possible null pointer dereference in org.mycore.datamodel.niofs.ifs2.MCRFileSystemProvider.copyDirectory(MCRDirectory, MCRPath, HashSet) due to return value of called method | STYLE | NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE | 336 | Medium |
Possible null pointer dereference in org.mycore.datamodel.niofs.ifs2.MCRFileSystemProvider.copyDirectory(MCRDirectory, MCRPath, HashSet) due to return value of called method | STYLE | NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE | 339 | Medium |
Possible null pointer dereference in org.mycore.datamodel.niofs.ifs2.MCRFileSystemProvider.copyDirectory(MCRDirectory, MCRPath, HashSet) due to return value of called method | STYLE | NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE | 354 | Medium |
Possible null pointer dereference in org.mycore.datamodel.niofs.ifs2.MCRFileSystemProvider.createDirectory(Path, FileAttribute[]) due to return value of called method | STYLE | NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE | 239 | Medium |
Possible null pointer dereference in org.mycore.datamodel.niofs.ifs2.MCRFileSystemProvider.createDirectory(Path, FileAttribute[]) due to return value of called method | STYLE | NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE | 246 | Medium |
Possible null pointer dereference in org.mycore.datamodel.niofs.ifs2.MCRFileSystemProvider.createDirectory(Path, FileAttribute[]) due to return value of called method | STYLE | NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE | 236 | Medium |
Redundant nullcheck of tgtDir, which is known to be non-null in org.mycore.datamodel.niofs.ifs2.MCRFileSystemProvider.copy(Path, Path, CopyOption[]) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 296 | Medium |
Return value of org.mycore.datamodel.ifs2.MCRDirectory.createDir(String) ignored, is this OK in org.mycore.datamodel.niofs.ifs2.MCRFileSystemProvider.createDirectory(Path, FileAttribute[]) | STYLE | RV_RETURN_VALUE_IGNORED_INFERRED | 250 | Medium |
Static field "FILE_SYSTEM_INSTANCE" is modified by an instance level synchronization lock. | MT_CORRECTNESS | SSD_DO_NOT_USE_INSTANCE_LOCK_ON_SHARED_STATIC_DATA | 118 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Possible null pointer dereference in org.mycore.datamodel.niofs.ifs2.MCRFileSystemUtils.doResolveParent(MCRPath) due to return value of called method | STYLE | NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE | 306 | Medium |
Possible null pointer dereference in org.mycore.datamodel.niofs.ifs2.MCRFileSystemUtils.getMCRFile(MCRDirectory, MCRPath, boolean, boolean, boolean) due to return value of called method | STYLE | NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE | 228 | Medium |
Possible null pointer dereference in org.mycore.datamodel.niofs.ifs2.MCRFileSystemUtils.resolvePath(MCRPath) due to return value of called method | STYLE | NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE | 259 | Medium |
Possible null pointer dereference in org.mycore.datamodel.niofs.ifs2.MCRFileSystemUtils.resolvePath(MCRPath) due to return value of called method | STYLE | NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE | 260 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.mycore.datamodel.niofs.ifs2.MCRIFSFileSystem.provider() may expose internal representation by returning MCRIFSFileSystem.provider | MALICIOUS_CODE | EI_EXPOSE_REP | 56 | Medium |