We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87bc1a1 commit 682848aCopy full SHA for 682848a
1 file changed
gcloud-java-storage/src/main/java/com/google/gcloud/storage/BlobInfo.java
@@ -29,6 +29,7 @@
29
import com.google.common.collect.ImmutableList;
30
import com.google.common.collect.ImmutableSet;
31
import com.google.common.collect.Lists;
32
+import com.google.common.collect.Maps;
33
34
import java.io.Serializable;
35
import java.math.BigInteger;
@@ -420,7 +421,7 @@ public ObjectAccessControl apply(Acl acl) {
420
421
}
422
Map<String, String> pbMetadata = metadata;
423
if (metadata != null && !Data.isNull(metadata)) {
- pbMetadata = new HashMap<>();
424
+ pbMetadata = Maps.newHashMapWithExpectedSize(metadata.size());
425
for (String key : metadata.keySet()) {
426
pbMetadata.put(key, firstNonNull(metadata.get(key), Data.<String>nullOf(String.class)));
427
0 commit comments