commit | f54f1f1f33715bd9fd44c654d8dfbaaa0bd94d46 | [log] [tgz] |
---|---|---|
author | Dave Borowitz <dborowitz@google.com> | Fri Jan 09 09:51:57 2015 -0800 |
committer | Dave Borowitz <dborowitz@google.com> | Fri Jan 09 10:34:04 2015 -0800 |
tree | 089fa4e6f2480a34d0969b22d838562e485a84dc | |
parent | b51115a314819b88feadfa7567c7869eb8b27f7d [diff] |
Make Schema and StatementExecutor interfaces AutoCloseable We target Java 7, so this should make things nicer. We do not make ResultSets AutoCloseable because they are implicitly closed when iteration is finished, and close should otherwise be called manually; they aren't really used from ARM blocks. Override the existing close methods so we can remove the exception, as the existing close implementations don't throw. Change-Id: Ibc628eb1d7694e52078bacef4866a2ec55b369d2