> @@ -35,14 +36,33 @@
> // guice is single threaded. no need to lock this
> List<Closeable> methodsToClose = Lists.<Closeable> newArrayList();
>
> + public enum State {
> + OPEN,
> + CLOSING,
> + CLOSED
> + }
> +
> + private final AtomicReference<State> state;
> +
> + public Closer() {
> + this.state = new AtomicReference<State>(State.OPEN);
Small style comment: perhaps also import `State.*` here, if that's possible
(perhaps not, since it's declared in this class)?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/32/files#r4723349