Inspectopedia Help

Resource management

'Channel' opened but not safely closed   New in this release

Reports Channel resources that are not safely closed, including any instances created by calling getChannel() on a file or socket resource.

AutoCloseable used without 'try'-with-resources   New in this release

Reports AutoCloseable instances which are not used in a try-with-resources statement, also known as Automatic Resource Management.

Hibernate resource opened but not safely closed   New in this release

Reports calls to the openSession() method if the returned org.hibernate.Session resource is not safely closed.

I/O resource opened but not safely closed   New in this release

Reports I/O resources that are not safely closed.

JDBC resource opened but not safely closed   New in this release

Reports JDBC resources that are not safely closed.

JNDI resource opened but not safely closed   New in this release

Reports JNDI resources that are not safely closed.

Socket opened but not safely closed   New in this release

Reports socket resources that are not safely closed.

Use of 'DriverManager' to get JDBC connection   New in this release

Reports any uses of java.sql.DriverManager to acquire a JDBC connection.

Last modified: 11 September 2024