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)) {