> public void addToClose(Closeable toClose) {
> methodsToClose.add(toClose);
> }
>
> public void close() throws IOException {
> - Collections.reverse(methodsToClose);
> - for (Closeable toClose : methodsToClose) {
> - toClose.close();
> + if (state.compareAndSet(State.OPEN, State.CLOSING)) {I agree. How can we test it? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/32/files#r4715961
