From 413c852ad774ab5541cac2ed213f0c2c1ab95e1d Mon Sep 17 00:00:00 2001 From: Neo Chien Date: Mon, 3 Mar 2025 10:26:31 +0800 Subject: [PATCH] [#2370] Improvement: Fix the warning: [unchecked] unchecked call to add(E) as a member of the raw type List (#2371) ### What changes were proposed in this pull request? Fix the warning: [unchecked] unchecked call to add(E) as a member of the raw type List ### Why are the changes needed? Fix: #2370 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? image --- .../java/org/apache/uniffle/common/ReconfigurableRegistry.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/org/apache/uniffle/common/ReconfigurableRegistry.java b/common/src/main/java/org/apache/uniffle/common/ReconfigurableRegistry.java index d15506c8fa..d426eda7a4 100644 --- a/common/src/main/java/org/apache/uniffle/common/ReconfigurableRegistry.java +++ b/common/src/main/java/org/apache/uniffle/common/ReconfigurableRegistry.java @@ -66,7 +66,8 @@ public static synchronized void register(String key, ReconfigureListener listene * @param listener the given property listener */ public static synchronized void register(Set keys, ReconfigureListener listener) { - List listenerList = LISTENER_MAP.computeIfAbsent(keys, k -> new ArrayList<>()); + List listenerList = + LISTENER_MAP.computeIfAbsent(keys, k -> new ArrayList<>()); listenerList.add(listener); }