From d6033061d5125557711788b756d9931b0c2578c8 Mon Sep 17 00:00:00 2001 From: Craig Perkins Date: Mon, 7 Aug 2023 12:12:52 -0400 Subject: [PATCH] Fix compilation warning in CollectionUtils affecting maven snapshot publication (#9149) * Fix compilation warning in CollectionUtils affecting maven snapshot publication Signed-off-by: Craig Perkins * Use SuppressWarnings Signed-off-by: Craig Perkins --------- Signed-off-by: Craig Perkins --- .../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..e8dd31fcf1869 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 @@ -134,6 +134,7 @@ public static void ensureNoSelfReferences(Object value, String messageHint) { } } + @SuppressWarnings("unchecked") private static Iterable convert(Object value) { if (value == null) { return null;