2 This method may fail to clean up (close, dispose of) a stream,
3 database object, or other
4 resource requiring an explicit cleanup operation.
7 In general, if a method opens a stream or other resource,
8 the method should use a try/finally block to ensure that
9 the stream or resource is cleaned up before the method
13 This bug pattern is essentially the same as the
14 OS_OPEN_STREAM and ODR_OPEN_DATABASE_RESOURCE
15 bug patterns, but is based on a different
16 (and hopefully better) static analysis technique.
17 We are interested is getting feedback about the
18 usefulness of this bug pattern.
19 To send feedback, either:
22 <li>send email to findbugs@cs.umd.edu</li>
23 <li>file a bug report: <a href="http://findbugs.sourceforge.net/reportingBugs.html">http://findbugs.sourceforge.net/reportingBugs.html</a></li>
27 the false-positive suppression heuristics for this
28 bug pattern have not been extensively tuned, so
29 reports about false positives are helpful to us.
32 See Weimer and Necula, <i>Finding and Preventing Run-Time Error Handling Mistakes</i>, for
33 a description of the analysis technique.