jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Cole <notificati...@github.com>
Subject Re: [jclouds-labs-google] Fix some obvious bugs in google-cloud-storage. (#76)
Date Tue, 04 Nov 2014 05:07:11 GMT
> @@ -105,9 +104,10 @@ protected GCSBlobStore(BlobStoreContext context, BlobUtils blobUtils,
Supplier<L
>  
>     @Override
>     public PageSet<? extends StorageMetadata> list() {
> -      return new Function<ListPage<Bucket>, org.jclouds.blobstore.domain.PageSet<?
extends StorageMetadata>>() {
> -         public org.jclouds.blobstore.domain.PageSet<? extends StorageMetadata>
apply(ListPage<Bucket> from) {
> -            return new PageSetImpl<StorageMetadata>(Iterables.transform(from,
bucketToStorageMetadata), null);
> +      return new Function<ListPage<Bucket>, PageSet<? extends StorageMetadata>>()
{
> +         public PageSet<? extends StorageMetadata> apply(ListPage<Bucket>
from) {
> +            return new PageSetImpl<StorageMetadata>(Iterables.transform(from,
bucketToStorageMetadata),
> +                  from.nextPageToken());

oops.. of course many folks won't have that many buckets.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/76/files#r19785765
Mime
View raw message