Skip to content

Commit a50b7c8

Browse files
committed
---
yaml --- r: 6365 b: refs/heads/tswast-patch-1 c: 682848a h: refs/heads/master i: 6363: dceed7d
1 parent f36131b commit a50b7c8

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

  • branches/tswast-patch-1/gcloud-java-storage/src/main/java/com/google/gcloud/storage

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ refs/tags/v0.18.0: 9d193c4c4b9d1c6f21515dd8e50836b9194ec9bb
5757
refs/tags/v0.19.0: e67b56e4d8dad5f9a7b38c9b2107c23c828f2ed5
5858
refs/tags/v0.20.0: 839f7fb7156535146aa1cb2c5aadd8d375d854e8
5959
refs/tags/v0.20.1: 370471f437f1f4f68a11e068df5cd6bf39edb1fa
60-
refs/heads/tswast-patch-1: 87bc1a112eacee8f475f0ebe2734aa35522f4fac
60+
refs/heads/tswast-patch-1: 682848a60389769e66c7a0e4e6f3ec4ac7dad572
6161
refs/heads/pubsub-streaming-pull: 19262b752ee874eb2ca3b950eb2aef44d5a5267b

branches/tswast-patch-1/gcloud-java-storage/src/main/java/com/google/gcloud/storage/BlobInfo.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import com.google.common.collect.ImmutableList;
3030
import com.google.common.collect.ImmutableSet;
3131
import com.google.common.collect.Lists;
32+
import com.google.common.collect.Maps;
3233

3334
import java.io.Serializable;
3435
import java.math.BigInteger;
@@ -420,7 +421,7 @@ public ObjectAccessControl apply(Acl acl) {
420421
}
421422
Map<String, String> pbMetadata = metadata;
422423
if (metadata != null && !Data.isNull(metadata)) {
423-
pbMetadata = new HashMap<>();
424+
pbMetadata = Maps.newHashMapWithExpectedSize(metadata.size());
424425
for (String key : metadata.keySet()) {
425426
pbMetadata.put(key, firstNonNull(metadata.get(key), Data.<String>nullOf(String.class)));
426427
}

0 commit comments

Comments
 (0)