Module CloseType

Import path

Likely_Bugs.Resource_Leaks.CloseType

Imports

Jdbc

Provides classes and predicates for working with the Java JDBC API.

Mockito

Provides classes and predicates for identifying use of the Mockito mocking framework.

Servlets

Provides classes and predicates for working with the Java Servlet API.

java

Provides all default Java QL imports.

Predicates

badCloseableInit

The innermost “closeable init” of cie that does not escape and is never closed.

noNeedToClose

A locally initialized “closeable init” that does not need to be closed.

sqlType

A type in the java.sql package with a close method. (Prior to Java 7, these types were not subtypes of Closeable or AutoCloseable.)

typeInDerivation

The type of the specified class instance creation expression or the type of any of the “closeable init” expressions that it is derived from.

Classes

CloseableInitExpr

A candidate for a “closeable init” expression, which may require calling a “close” method.

SqlResourceOpeningMethodAccess

An access to a method on a type in the ’java.sqlpackage that creates a closeable object in thejava.sqlpackage. For example,PreparedStatement.executeQuery()orConnection.prepareStatement(String)`.