> +
> +import static com.google.common.base.Preconditions.checkNotNull;
> +import static com.google.common.base.Throwables.propagate;
> +import static com.google.common.util.concurrent.Futures.immediateFuture;
> +import static org.jclouds.http.HttpUtils.contains404;
> +import static org.jclouds.util.Throwables2.getFirstThrowableOfType;
> +
> +public class EmptyQueuesFallback implements Fallback<Queues> {
> +
> + public ListenableFuture<Queues> create(Throwable t) throws Exception {
> + return immediateFuture(createOrPropagate(t));
> + }
> +
> + @Override
> + public Queues createOrPropagate(Throwable t) throws Exception {
> + if ( ( getFirstThrowableOfType(checkNotNull(t, "throwable"),
> ResourceNotFoundException.class) != null ) || contains404(t)) {
Remove unnecessary spaces.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/96/files#r13508780