Skip to content

Commit 46d3c25

Browse files
committed
review: addressing comments
1 parent d58f7fb commit 46d3c25

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

util/src/main/java/io/kubernetes/client/util/annotations/Annotations.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
*/
1313
package io.kubernetes.client.util.annotations;
1414

15+
import com.google.common.collect.ImmutableMap;
1516
import io.kubernetes.client.common.KubernetesObject;
1617
import java.util.HashMap;
1718
import java.util.Map;
@@ -27,9 +28,7 @@ public class Annotations {
2728
*/
2829
public static void addAnnotations(
2930
KubernetesObject kubernetesObject, String annotation, String value) {
30-
Map<String, String> mergingAnnotations = new HashMap<>();
31-
mergingAnnotations.put(annotation, value);
32-
addAnnotations(kubernetesObject, mergingAnnotations);
31+
addAnnotations(kubernetesObject, ImmutableMap.of(annotation, value));
3332
}
3433

3534
/**

0 commit comments

Comments
 (0)