Reports any JDBC resource which is not safely closed in a finally block. Such resources may be inadvertently leaked if an exception is thrown before the resource is closed. JDBC resources reported by this inspection include java.sql.Connection, java.sql.Statement, java.sql.PreparedStatement, java.sql.CallableStatement, and java.sql.ResultSet.

Use the checkbox below to specify if a JDBC 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.