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

@ -71,4 +71,4 @@ public class CloudStackSecurityGroupToSecurityGroup implements Function<org.jclo
return builder.build(); return builder.build();
} }
} }

View File

@ -52,4 +52,4 @@ public class IngressRuleToIpPermission implements Function<IngressRule, IpPermis
return builder.build(); return builder.build();
} }
} }

View File

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

View File

@ -92,4 +92,4 @@ public class EC2SecurityGroupToSecurityGroup implements Function<org.jclouds.ec2
return null; return null;
} }
} }
} }

View File

@ -71,4 +71,4 @@ public class NovaSecurityGroupToSecurityGroup implements Function<org.jclouds.op
return builder.build(); return builder.build();
} }
} }

View File

@ -54,4 +54,4 @@ public class SecurityGroupRuleToIpPermission implements Function<SecurityGroupRu
return builder.build(); return builder.build();
} }
} }

View File

@ -25,8 +25,11 @@ import java.util.concurrent.atomic.AtomicReference;
import javax.inject.Singleton; import javax.inject.Singleton;
import com.google.common.collect.Lists; 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. * 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; private final AtomicReference<State> state;
public Closer() { public Closer() {
this.state = new AtomicReference<State>(AVAILABLE); this.state = Atomics.newReference(AVAILABLE);
} }
public void addToClose(Closeable toClose) { public void addToClose(Closeable toClose) {