Apache Commons logo Commons IO

SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.3.0

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
201 36 0 0

Files

Class Bugs
org.apache.commons.io.FileCleaner 1
org.apache.commons.io.FileCleaningTracker 1
org.apache.commons.io.IOExceptionList 2
org.apache.commons.io.file.AccumulatorPathVisitor 2
org.apache.commons.io.file.PathUtils 1
org.apache.commons.io.filefilter.DelegateFileFilter 2
org.apache.commons.io.filefilter.RegexFileFilter 2
org.apache.commons.io.input.BrokenInputStream 1
org.apache.commons.io.input.BrokenReader 1
org.apache.commons.io.input.ClassLoaderObjectInputStream 1
org.apache.commons.io.input.ObservableInputStream 1
org.apache.commons.io.input.RandomAccessFileInputStream 1
org.apache.commons.io.input.ReadAheadInputStream 1
org.apache.commons.io.input.ReaderInputStream 1
org.apache.commons.io.input.Tailer 1
org.apache.commons.io.input.TeeInputStream 1
org.apache.commons.io.input.TeeReader 1
org.apache.commons.io.input.TimestampedObserver 2
org.apache.commons.io.monitor.FileAlterationMonitor 1
org.apache.commons.io.monitor.FileAlterationObserver 3
org.apache.commons.io.monitor.FileEntry 2
org.apache.commons.io.output.BrokenOutputStream 1
org.apache.commons.io.output.BrokenWriter 1
org.apache.commons.io.output.StringBuilderWriter 1
org.apache.commons.io.output.TeeOutputStream 1
org.apache.commons.io.output.WriterOutputStream 2
org.apache.commons.io.output.XmlStreamWriter 1

org.apache.commons.io.FileCleaner

Bug Category Details Line Priority
Public static org.apache.commons.io.FileCleaner.getInstance() may expose internal representation by returning FileCleaner.theInstance MALICIOUS_CODE MS_EXPOSE_REP 155 Medium

org.apache.commons.io.FileCleaningTracker

Bug Category Details Line Priority
org.apache.commons.io.FileCleaningTracker.getDeleteFailures() may expose internal representation by returning FileCleaningTracker.deleteFailures MALICIOUS_CODE EI_EXPOSE_REP 162 Medium

org.apache.commons.io.IOExceptionList

Bug Category Details Line Priority
org.apache.commons.io.IOExceptionList.getCauseList() may expose internal representation by returning IOExceptionList.causeList MALICIOUS_CODE EI_EXPOSE_REP 89 Medium
org.apache.commons.io.IOExceptionList.getCauseList(Class) may expose internal representation by returning IOExceptionList.causeList MALICIOUS_CODE EI_EXPOSE_REP 100 Medium

org.apache.commons.io.file.AccumulatorPathVisitor

Bug Category Details Line Priority
org.apache.commons.io.file.AccumulatorPathVisitor.getDirList() may expose internal representation by returning AccumulatorPathVisitor.dirList MALICIOUS_CODE EI_EXPOSE_REP 164 Medium
org.apache.commons.io.file.AccumulatorPathVisitor.getFileList() may expose internal representation by returning AccumulatorPathVisitor.fileList MALICIOUS_CODE EI_EXPOSE_REP 173 Medium

org.apache.commons.io.file.PathUtils

Bug Category Details Line Priority
org.apache.commons.io.file.PathUtils.NOFOLLOW_LINK_OPTION_ARRAY should be package protected MALICIOUS_CODE MS_PKGPROTECT 163 Medium

org.apache.commons.io.filefilter.DelegateFileFilter

Bug Category Details Line Priority
Class org.apache.commons.io.filefilter.DelegateFileFilter defines non-transient non-serializable instance field fileFilter BAD_PRACTICE SE_BAD_FIELD Not available Medium
Class org.apache.commons.io.filefilter.DelegateFileFilter defines non-transient non-serializable instance field filenameFilter BAD_PRACTICE SE_BAD_FIELD Not available Medium

org.apache.commons.io.filefilter.RegexFileFilter

Bug Category Details Line Priority
new org.apache.commons.io.filefilter.RegexFileFilter(Pattern, Function) may expose internal representation by storing an externally mutable object into RegexFileFilter.pattern MALICIOUS_CODE EI_EXPOSE_REP2 125 Medium
Class org.apache.commons.io.filefilter.RegexFileFilter defines non-transient non-serializable instance field pathToString BAD_PRACTICE SE_BAD_FIELD Not available Medium

org.apache.commons.io.input.BrokenInputStream

Bug Category Details Line Priority
new org.apache.commons.io.input.BrokenInputStream(IOException) may expose internal representation by storing an externally mutable object into BrokenInputStream.exception MALICIOUS_CODE EI_EXPOSE_REP2 45 Medium

org.apache.commons.io.input.BrokenReader

Bug Category Details Line Priority
new org.apache.commons.io.input.BrokenReader(IOException) may expose internal representation by storing an externally mutable object into BrokenReader.exception MALICIOUS_CODE EI_EXPOSE_REP2 45 Medium

org.apache.commons.io.input.ClassLoaderObjectInputStream

Bug Category Details Line Priority
new org.apache.commons.io.input.ClassLoaderObjectInputStream(ClassLoader, InputStream) may expose internal representation by storing an externally mutable object into ClassLoaderObjectInputStream.classLoader MALICIOUS_CODE EI_EXPOSE_REP2 52 Medium

org.apache.commons.io.input.ObservableInputStream

Bug Category Details Line Priority
org.apache.commons.io.input.ObservableInputStream.getObservers() may expose internal representation by returning ObservableInputStream.observers MALICIOUS_CODE EI_EXPOSE_REP 185 Medium

org.apache.commons.io.input.RandomAccessFileInputStream

Bug Category Details Line Priority
org.apache.commons.io.input.RandomAccessFileInputStream.getRandomAccessFile() may expose internal representation by returning RandomAccessFileInputStream.randomAccessFile MALICIOUS_CODE EI_EXPOSE_REP 96 Medium

org.apache.commons.io.input.ReadAheadInputStream

Bug Category Details Line Priority
org.apache.commons.io.input.ReadAheadInputStream.waitForAsyncReadComplete() does not release lock on all exception paths MT_CORRECTNESS UL_UNRELEASED_LOCK_EXCEPTION_PATH 443 Medium

org.apache.commons.io.input.ReaderInputStream

Bug Category Details Line Priority
new org.apache.commons.io.input.ReaderInputStream(Reader, CharsetEncoder, int) may expose internal representation by storing an externally mutable object into ReaderInputStream.encoder MALICIOUS_CODE EI_EXPOSE_REP2 126 Medium

org.apache.commons.io.input.Tailer

Bug Category Details Line Priority
new org.apache.commons.io.input.Tailer(File, Charset, TailerListener, long, boolean, boolean, int) may expose internal representation by storing an externally mutable object into Tailer.charset MALICIOUS_CODE EI_EXPOSE_REP2 268 Medium

org.apache.commons.io.input.TeeInputStream

Bug Category Details Line Priority
new org.apache.commons.io.input.TeeInputStream(InputStream, OutputStream, boolean) may expose internal representation by storing an externally mutable object into TeeInputStream.branch MALICIOUS_CODE EI_EXPOSE_REP2 79 Medium

org.apache.commons.io.input.TeeReader

Bug Category Details Line Priority
new org.apache.commons.io.input.TeeReader(Reader, Writer, boolean) may expose internal representation by storing an externally mutable object into TeeReader.branch MALICIOUS_CODE EI_EXPOSE_REP2 71 Medium

org.apache.commons.io.input.TimestampedObserver

Bug Category Details Line Priority
org.apache.commons.io.input.TimestampedObserver.getCloseInstant() may expose internal representation by returning TimestampedObserver.closeInstant MALICIOUS_CODE EI_EXPOSE_REP 59 Medium
org.apache.commons.io.input.TimestampedObserver.getOpenInstant() may expose internal representation by returning TimestampedObserver.openInstant MALICIOUS_CODE EI_EXPOSE_REP 86 Medium

org.apache.commons.io.monitor.FileAlterationMonitor

Bug Category Details Line Priority
org.apache.commons.io.monitor.FileAlterationMonitor.getObservers() may expose internal representation by returning FileAlterationMonitor.observers MALICIOUS_CODE EI_EXPOSE_REP 144 Medium

org.apache.commons.io.monitor.FileAlterationObserver

Bug Category Details Line Priority
org.apache.commons.io.monitor.FileAlterationObserver.getListeners() may expose internal representation by returning FileAlterationObserver.listeners MALICIOUS_CODE EI_EXPOSE_REP 269 Medium
Class org.apache.commons.io.monitor.FileAlterationObserver defines non-transient non-serializable instance field fileFilter BAD_PRACTICE SE_BAD_FIELD Not available Medium
Class org.apache.commons.io.monitor.FileAlterationObserver defines non-transient non-serializable instance field listeners BAD_PRACTICE SE_BAD_FIELD Not available Medium

org.apache.commons.io.monitor.FileEntry

Bug Category Details Line Priority
org.apache.commons.io.monitor.FileEntry.getParent() may expose internal representation by returning FileEntry.parent MALICIOUS_CODE EI_EXPOSE_REP 142 Medium
new org.apache.commons.io.monitor.FileEntry(FileEntry, File) may expose internal representation by storing an externally mutable object into FileEntry.parent MALICIOUS_CODE EI_EXPOSE_REP2 82 Medium

org.apache.commons.io.output.BrokenOutputStream

Bug Category Details Line Priority
new org.apache.commons.io.output.BrokenOutputStream(IOException) may expose internal representation by storing an externally mutable object into BrokenOutputStream.exception MALICIOUS_CODE EI_EXPOSE_REP2 45 Medium

org.apache.commons.io.output.BrokenWriter

Bug Category Details Line Priority
new org.apache.commons.io.output.BrokenWriter(IOException) may expose internal representation by storing an externally mutable object into BrokenWriter.exception MALICIOUS_CODE EI_EXPOSE_REP2 45 Medium

org.apache.commons.io.output.StringBuilderWriter

Bug Category Details Line Priority
org.apache.commons.io.output.StringBuilderWriter.getBuilder() may expose internal representation by returning StringBuilderWriter.builder MALICIOUS_CODE EI_EXPOSE_REP 153 Medium

org.apache.commons.io.output.TeeOutputStream

Bug Category Details Line Priority
new org.apache.commons.io.output.TeeOutputStream(OutputStream, OutputStream) may expose internal representation by storing an externally mutable object into TeeOutputStream.branch MALICIOUS_CODE EI_EXPOSE_REP2 43 Medium

org.apache.commons.io.output.WriterOutputStream

Bug Category Details Line Priority
new org.apache.commons.io.output.WriterOutputStream(Writer, CharsetDecoder, int, boolean) may expose internal representation by storing an externally mutable object into WriterOutputStream.decoder MALICIOUS_CODE EI_EXPOSE_REP2 125 Medium
new org.apache.commons.io.output.WriterOutputStream(Writer, CharsetDecoder, int, boolean) may expose internal representation by storing an externally mutable object into WriterOutputStream.writer MALICIOUS_CODE EI_EXPOSE_REP2 124 Medium

org.apache.commons.io.output.XmlStreamWriter

Bug Category Details Line Priority
new org.apache.commons.io.output.XmlStreamWriter(OutputStream, String) may expose internal representation by storing an externally mutable object into XmlStreamWriter.out MALICIOUS_CODE EI_EXPOSE_REP2 72 Medium