rabbitmq/rabbitmq-java-client — pull request #25 by mshinn (2014-12-24 04:18:09+00:00)
Title: Make Channel and Connection implement AutoCloseable for use in try-with-...

...resources

As mentioned in the description, this change will allow Connection and Channel instances to be compatible with the try-with-resources feature: http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html

For try-with-resources to work, both interfaces need to extend AutoCloseable. Since each interface already declares a close() method with the proper signature, the change is trivial.