Resource management
- 'Channel' opened but not safely closed
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
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
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
Reports I/O resources that are not safely closed.
- JDBC resource opened but not safely closed
Reports JDBC resources that are not safely closed.
- JNDI resource opened but not safely closed
Reports JNDI resources that are not safely closed.
- Socket opened but not safely closed
Reports socket resources that are not safely closed.
- Use of 'DriverManager' to get JDBC connection
Reports any uses of java.sql.DriverManager to acquire a JDBC connection.
Last modified: 11 September 2024