From 00a36c3e454d9d37fccb179238968ecfeb149413 Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Fri, 27 May 2016 17:26:16 -0700 Subject: [PATCH] JCLOUDS-654: Add size to BlobMetadata constructor Follow on to fae097e144c0b9adf00f88ded1d614e2aec963f8. --- .../blobstore/domain/internal/BlobMetadataImpl.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/blobstore/src/main/java/org/jclouds/blobstore/domain/internal/BlobMetadataImpl.java b/blobstore/src/main/java/org/jclouds/blobstore/domain/internal/BlobMetadataImpl.java index 71671e6479..a339b064b8 100644 --- a/blobstore/src/main/java/org/jclouds/blobstore/domain/internal/BlobMetadataImpl.java +++ b/blobstore/src/main/java/org/jclouds/blobstore/domain/internal/BlobMetadataImpl.java @@ -43,13 +43,21 @@ public class BlobMetadataImpl extends StorageMetadataImpl implements BlobMetadat public BlobMetadataImpl(String id, String name, @Nullable Location location, URI uri, String eTag, @Nullable Date creationDate, @Nullable Date lastModified, Map userMetadata, @Nullable URI publicUri, - @Nullable String container, ContentMetadata contentMetadata) { - super(StorageType.BLOB, id, name, location, uri, eTag, creationDate, lastModified, userMetadata); + @Nullable String container, ContentMetadata contentMetadata, @Nullable Long size) { + super(StorageType.BLOB, id, name, location, uri, eTag, creationDate, lastModified, userMetadata, size); this.publicUri = publicUri; this.container = container; this.contentMetadata = checkNotNull(contentMetadata, "contentMetadata"); } + @Deprecated + public BlobMetadataImpl(String id, String name, @Nullable Location location, URI uri, String eTag, + @Nullable Date creationDate, @Nullable Date lastModified, + Map userMetadata, @Nullable URI publicUri, + @Nullable String container, ContentMetadata contentMetadata) { + this(id, name, location, uri, eTag, creationDate, lastModified, userMetadata, publicUri, container, contentMetadata, null); + } + /** * {@inheritDoc} */