-
Notifications
You must be signed in to change notification settings - Fork 578
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
Implement Closable interface #131
Comments
I think you are confusing |
We don't have a tag for |
Closable is JDK 6 and in JDK 7 Closeable extends AutoCloseable, so it would come automatically with the switch. This would also mean that one could download the source and just compile it with JDK 7 and get AutoCloseable |
Fair enough. @Khazrak feel free to submit a PR against master. |
Channel and Connection can implement the Closable interface, the close()-method is already implemented. This will open up the possibility to compile with Java 7 and use the try-with-resource function to avoid try-catch in finally-block of close
The text was updated successfully, but these errors were encountered: