[
https://issues.apache.org/jira/browse/CALCITE-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15044228#comment-15044228
]
Jacques Nadeau commented on CALCITE-1008:
-----------------------------------------
It would be good to switch to the try-with-resources pattern also as part of
this change.
> Replace Closeable with AutoCloseable
> ------------------------------------
>
> Key: CALCITE-1008
> URL: https://issues.apache.org/jira/browse/CALCITE-1008
> Project: Calcite
> Issue Type: Bug
> Reporter: Julian Hyde
> Assignee: Julian Hyde
>
> Now Calcite no longer supports JDK 1.6 we can use AutoCloseable if we want
> to. It is more appropriate interface for releasing resources on close because
> it is not so tightly associated with I/O. (Closeable.close throws
> IOException.) Most, if not all, uses of Closeable in Calcite should instead
> use AutoCloseable.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)