diff --git a/providers/google-cloud-storage/src/main/java/org/jclouds/googlecloudstorage/domain/ListPage.java b/providers/google-cloud-storage/src/main/java/org/jclouds/googlecloudstorage/domain/ListPage.java index 30b43f940f..d296855230 100644 --- a/providers/google-cloud-storage/src/main/java/org/jclouds/googlecloudstorage/domain/ListPage.java +++ b/providers/google-cloud-storage/src/main/java/org/jclouds/googlecloudstorage/domain/ListPage.java @@ -30,6 +30,7 @@ import org.jclouds.googlecloudstorage.domain.Resource.Kind; import com.google.common.base.MoreObjects; import com.google.common.base.Objects; import com.google.common.base.Optional; +import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableSet; /** @@ -47,7 +48,7 @@ public class ListPage extends IterableWithMarker { this.kind = checkNotNull(kind, "kind"); this.nextPageToken = nextPageToken; - this.items = items != null ? ImmutableSet.copyOf(items) : ImmutableSet. of(); + this.items = items != null ? ImmutableList.copyOf(items) : ImmutableList. of(); this.prefixes = prefixes != null ? prefixes : ImmutableSet. of(); } @@ -110,7 +111,7 @@ public class ListPage extends IterableWithMarker { private Kind kind; private String nextPageToken; - private ImmutableSet.Builder items = ImmutableSet.builder(); + private ImmutableList.Builder items = ImmutableList.builder(); private ImmutableSet.Builder prefixes = ImmutableSet.builder(); public Builder kind(Kind kind) { diff --git a/providers/google-cloud-storage/src/test/java/org/jclouds/googlecloudstorage/parse/DefaultObjectAclListTest.java b/providers/google-cloud-storage/src/test/java/org/jclouds/googlecloudstorage/parse/DefaultObjectAclListTest.java index 56b2e459e2..ee7115ce61 100644 --- a/providers/google-cloud-storage/src/test/java/org/jclouds/googlecloudstorage/parse/DefaultObjectAclListTest.java +++ b/providers/google-cloud-storage/src/test/java/org/jclouds/googlecloudstorage/parse/DefaultObjectAclListTest.java @@ -27,8 +27,6 @@ import org.jclouds.googlecloudstorage.domain.internal.ProjectTeam; import org.jclouds.googlecloudstorage.domain.internal.ProjectTeam.Team; import org.jclouds.googlecloudstorage.internal.BaseGoogleCloudStorageParseTest; -import com.google.common.collect.ImmutableSet; - public class DefaultObjectAclListTest extends BaseGoogleCloudStorageParseTest { private DefaultObjectAccessControls item_1 = DefaultObjectAccessControls.builder() @@ -44,7 +42,6 @@ public class DefaultObjectAclListTest extends BaseGoogleCloudStorageParseTest
  • { private ObjectAccessControls item1 = ObjectAccessControls @@ -49,7 +47,7 @@ public class ObjectAclListTest extends BaseGoogleCloudStorageParseTest