jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Phillips <notificati...@github.com>
Subject Re: [jclouds-labs-google] JCLOUDS-458:Added Blobstore Abstraction (#48)
Date Sat, 20 Sep 2014 03:21:53 GMT
> +
> +import com.google.common.base.Function;
> +import com.google.common.base.Supplier;
> +import com.google.inject.Inject;
> +import com.google.inject.Singleton;
> +
> +@Singleton
> +public class BucketToStorageMetadata implements Function<Bucket, StorageMetadata>
{
> +   private Supplier<Location> defaultLocation;
> +
> +   @Inject
> +   BucketToStorageMetadata(Supplier<Location> defaultLocation) {
> +      this.defaultLocation = defaultLocation;
> +   }
> +
> +   public StorageMetadata apply(Bucket from) {

Here we don't check for `from == null`, but we do above...any reason?

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