From d005a59018e13d8186465f0cc2c7d7e6dabab3d1 Mon Sep 17 00:00:00 2001 From: Nicholas Walter Knize Date: Fri, 4 Aug 2023 17:06:32 -0500 Subject: [PATCH] add suppress warning Signed-off-by: Nicholas Walter Knize --- .../java/org/opensearch/core/common/util/CollectionUtils.java | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/core/src/main/java/org/opensearch/core/common/util/CollectionUtils.java b/libs/core/src/main/java/org/opensearch/core/common/util/CollectionUtils.java index 5cb8b900814b9..edc544b67c42e 100644 --- a/libs/core/src/main/java/org/opensearch/core/common/util/CollectionUtils.java +++ b/libs/core/src/main/java/org/opensearch/core/common/util/CollectionUtils.java @@ -139,6 +139,7 @@ private static Iterable convert(Object value) { return null; } if (value instanceof Map) { + @SuppressWarnings("unchecked") Map map = (Map) value; return () -> Iterators.concat(map.keySet().iterator(), map.values().iterator()); } else if ((value instanceof Iterable) && (value instanceof Path == false)) {