Description
If a class has a close method, make it implement AutoCloseable, so it can be used in try-with-resources. Some possible classes (they have a close method):
- org.apache.calcite.tools.Planner
- org.apache.calcite.interpreter.Interpreter
- org.apache.calcite.interpreter.Source
- Hook.Closeable (we can ditch JDK 1.6 support)
- SqlTesterImpl
Attachments
Issue Links
- is duplicated by
-
CALCITE-1460 Make Planner object Autocloseable
- Closed
- links to