Repository: jclouds-labs-google Updated Branches: refs/heads/master 65ac580c1 -> 1cb3164db
JCLOUDS-40 unasync Fallback. Project: http://git-wip-us.apache.org/repos/asf/jclouds-labs-google/repo Commit: http://git-wip-us.apache.org/repos/asf/jclouds-labs-google/commit/1cb3164d Tree: http://git-wip-us.apache.org/repos/asf/jclouds-labs-google/tree/1cb3164d Diff: http://git-wip-us.apache.org/repos/asf/jclouds-labs-google/diff/1cb3164d Branch: refs/heads/master Commit: 1cb3164dba4e5b9c524ffe798737eca6d08fe636 Parents: 65ac580 Author: Adrian Cole <[email protected]> Authored: Mon Oct 6 16:21:08 2014 -0700 Committer: Adrian Cole <[email protected]> Committed: Mon Oct 6 16:21:08 2014 -0700 ---------------------------------------------------------------------- .../org/jclouds/googlecloudstorage/fallback/GCSFallbacks.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/jclouds-labs-google/blob/1cb3164d/google-cloud-storage/src/main/java/org/jclouds/googlecloudstorage/fallback/GCSFallbacks.java ---------------------------------------------------------------------- diff --git a/google-cloud-storage/src/main/java/org/jclouds/googlecloudstorage/fallback/GCSFallbacks.java b/google-cloud-storage/src/main/java/org/jclouds/googlecloudstorage/fallback/GCSFallbacks.java index fe3f309..88e24ca 100644 --- a/google-cloud-storage/src/main/java/org/jclouds/googlecloudstorage/fallback/GCSFallbacks.java +++ b/google-cloud-storage/src/main/java/org/jclouds/googlecloudstorage/fallback/GCSFallbacks.java @@ -18,17 +18,12 @@ package org.jclouds.googlecloudstorage.fallback; 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 org.jclouds.Fallback; -import com.google.common.util.concurrent.ListenableFuture; public final class GCSFallbacks { public static final class NullOnBucketAlreadyExists implements Fallback<Object> { - public ListenableFuture<Object> create(Throwable t) throws Exception { - return immediateFuture(createOrPropagate(t)); - } - public Object createOrPropagate(Throwable t) throws Exception { if (checkNotNull(t, "throwable") instanceof IllegalStateException) { return null;
