mirror of https://github.com/apache/jclouds.git
fixed typo in blob builder
This commit is contained in:
parent
12d927f40d
commit
54ea98ba49
|
@ -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<String, String> userMetadata) {
|
||||
if (userMetadata == null)
|
||||
this.userMetadata = ImmutableMap.copyOf(userMetadata);
|
||||
if (userMetadata != null)
|
||||
this.userMetadata = Maps.newLinkedHashMap(userMetadata);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue