summaryrefslogtreecommitdiff
path: root/plugins/InspectionGadgets/src/inspectionDescriptions/IOResource.html
blob: a0894221d9d638cfd82f1bb88c4b924f85a32b32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<html>
<body>
Reports any I/O resource which is not opened in front of a <b>try</b>
block and closed in the corresponding <b>finally</b> block. Such resources may
be inadvertently leaked if an exception is thrown before the resource is closed. I/O resources checked
by this inspection include <b>java.io.InputStream</b>,
<b>java.io.OutputStream</b>,
<b>java.io.Reader</b>,
<b>java.io.Writer</b> and
<b>java.io.RandomAccessFile</b>. I/O resources which are wrapped by other I/O resources
are not reported, as the wrapped resource will be closed by the wrapping resource.
<!-- tooltip end -->
<p>
Use the table below to specify which I/O resources should be ignored by this inspection.
Specify I/O resource classes here which do not need to be closed.
Use the checkbox below to specify if a I/O resource is allowed to be opened inside a try
block. This style is less desirable because it is more verbose than opening a resource in front of a try
block.
<p>
<small>Powered by InspectionGadgets</small>
</body>
</html>