From 54ea98ba498a53eed6545e75b18353b42ff92e4e Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Fri, 1 Apr 2011 14:43:08 -0700 Subject: [PATCH] fixed typo in blob builder --- .../jclouds/blobstore/domain/internal/BlobBuilderImpl.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/blobstore/src/main/java/org/jclouds/blobstore/domain/internal/BlobBuilderImpl.java b/blobstore/src/main/java/org/jclouds/blobstore/domain/internal/BlobBuilderImpl.java index 68d084f569..02c2e352a2 100644 --- a/blobstore/src/main/java/org/jclouds/blobstore/domain/internal/BlobBuilderImpl.java +++ b/blobstore/src/main/java/org/jclouds/blobstore/domain/internal/BlobBuilderImpl.java @@ -41,7 +41,6 @@ import org.jclouds.io.Payloads; import org.jclouds.io.payloads.PhantomPayload; import com.google.common.base.Throwables; -import com.google.common.collect.ImmutableMap; import com.google.common.collect.Maps; /** @@ -70,8 +69,8 @@ public class BlobBuilderImpl implements BlobBuilder { @Override public BlobBuilder userMetadata(Map userMetadata) { - if (userMetadata == null) - this.userMetadata = ImmutableMap.copyOf(userMetadata); + if (userMetadata != null) + this.userMetadata = Maps.newLinkedHashMap(userMetadata); return this; }