New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Java 7 try-with-resources #16

Closed
serac opened this Issue Nov 24, 2014 · 0 comments

Comments

Projects
None yet
2 participants
@serac
Copy link
Member

serac commented Nov 24, 2014

The Connection interface should extend AutoCloseable to facilitate the following pattern:

try (Connection conn = connectionFactory.getInstance()) {
    // do something with connection
}

@serac serac added the enhancement label Nov 24, 2014

dfish3r added a commit that referenced this issue Nov 24, 2014

Java 7 support.
Connection now extends AutoClosable.
Fixes #16.

@dfish3r dfish3r referenced this issue Nov 24, 2014

Merged

Java 7 support. #17

@serac serac closed this in #17 Nov 24, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment