View by Classes

Findings - Overview

info Method may fail to close stream on exception (Findbugs)

Further info on the wiki.

The method creates an IO stream object, does not assign it to any fields, pass it to other methods, or return it, and does not appear to close it on all possible exception paths out of the method.  This may result in a file descriptor leak.  It is generally a good idea to use a finally block to ensure that streams are closed.

6org.jcoderz.commons.util.LazyFileOutputStreamTest
org.jcoderz.commons.util.LazyFileOutputStreamTest.fillTestData(File) may fail to close stream on exception (test code) [186],
org.jcoderz.commons.util.LazyFileOutputStreamTest.testDifferentFile() may fail to close stream on exception (test code) [164],
org.jcoderz.commons.util.LazyFileOutputStreamTest.testLongerFile() may fail to close stream on exception (test code) [107],
org.jcoderz.commons.util.LazyFileOutputStreamTest.testNewFile() may fail to close stream on exception (test code) [58],
org.jcoderz.commons.util.LazyFileOutputStreamTest.testSameFile() may fail to close stream on exception (test code) [137],
org.jcoderz.commons.util.LazyFileOutputStreamTest.testShorterFile() may fail to close stream on exception (test code) [82]
2org.jcoderz.guidelines.JavaCodeSnippets
org.jcoderz.guidelines.JavaCodeSnippets.generateSnippet(File, File) may fail to close stream on exception [164],
org.jcoderz.guidelines.JavaCodeSnippets.generateSnippet(File, File) may fail to close stream on exception [128]
1org.jcoderz.commons.util.IoUtilTest
org.jcoderz.commons.util.IoUtilTest.testSkip() may fail to close stream on exception (test code) [211]