> +/** > + * The bucket's Cross-Origin Resource Sharing (CORS) configuration. > + * > + * @see <a href= "https://developers.google.com/storage/docs/cross-origin" /> > + */ > + > +public final class BucketCors { > + private final Set<String> origins; > + private final Set<String> methods; > + private final Set<String> responseHeaders; > + private final Integer maxAgeSeconds; > + > + public BucketCors(@Nullable Set<String> origin, @Nullable Set<String> > method, @Nullable Set<String> responseHeader, > + Integer maxAgeSeconds) { > + > + this.origins = origin == null ? ImmutableSet.<String> of() : origin;
Just curious: up in `Bucket` we had empty-collection-to-null conversion in the constructor, here it's exactly the opposite (null-to-empty-collection). Any reason for having these two different approaches? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs-google/pull/31/files#r14532492