mirror of https://github.com/apache/jclouds.git
Checkstyle fixes
This commit is contained in:
parent
02d1ac4648
commit
60e9062894
|
@ -71,4 +71,4 @@ public class CloudStackSecurityGroupToSecurityGroup implements Function<org.jclo
|
|||
|
||||
return builder.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -52,4 +52,4 @@ public class IngressRuleToIpPermission implements Function<IngressRule, IpPermis
|
|||
|
||||
return builder.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -159,5 +159,3 @@ public class ZoneSecurityGroupNamePortsCidrs extends ZoneAndName {
|
|||
return string().toString();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -92,4 +92,4 @@ public class EC2SecurityGroupToSecurityGroup implements Function<org.jclouds.ec2
|
|||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -71,4 +71,4 @@ public class NovaSecurityGroupToSecurityGroup implements Function<org.jclouds.op
|
|||
|
||||
return builder.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -54,4 +54,4 @@ public class SecurityGroupRuleToIpPermission implements Function<SecurityGroupRu
|
|||
|
||||
return builder.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue