Checkstyle fixes

This commit is contained in:
Andrew Gaul 2013-07-09 14:06:12 -07:00
parent 02d1ac4648
commit 60e9062894
7 changed files with 10 additions and 9 deletions

View File

@ -159,5 +159,3 @@ public class ZoneSecurityGroupNamePortsCidrs extends ZoneAndName {
return string().toString();
}
}

View File

@ -25,8 +25,11 @@ import java.util.concurrent.atomic.AtomicReference;
import javax.inject.Singleton;
import com.google.common.collect.Lists;
import com.google.common.util.concurrent.Atomics;
import static org.jclouds.lifecycle.Closer.State.*;
import static org.jclouds.lifecycle.Closer.State.AVAILABLE;
import static org.jclouds.lifecycle.Closer.State.DONE;
import static org.jclouds.lifecycle.Closer.State.PROCESSING;
/**
* This will close objects in the reverse order that they were added.
@ -47,7 +50,7 @@ public class Closer implements Closeable {
private final AtomicReference<State> state;
public Closer() {
this.state = new AtomicReference<State>(AVAILABLE);
this.state = Atomics.newReference(AVAILABLE);
}
public void addToClose(Closeable toClose) {