This is an automated email from the ASF dual-hosted git repository.
roryqi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-uniffle.git
The following commit(s) were added to refs/heads/master by this push:
new 413c852ad [#2370] Improvement: Fix the warning: [unchecked] unchecked
call to add(E) as a member of the raw type List (#2371)
413c852ad is described below
commit 413c852ad774ab5541cac2ed213f0c2c1ab95e1d
Author: Neo Chien <[email protected]>
AuthorDate: Mon Mar 3 10:26:31 2025 +0800
[#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?
<img width="1382" alt="image"
src="https://github.com/user-attachments/assets/e2c9aab9-d936-42ee-9540-26a789c84a07"
/>
---
.../main/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 d15506c8f..d426eda7a 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 class ReconfigurableRegistry {
* @param listener the given property listener
*/
public static synchronized void register(Set<String> keys,
ReconfigureListener listener) {
- List listenerList = LISTENER_MAP.computeIfAbsent(keys, k -> new
ArrayList<>());
+ List<ReconfigureListener> listenerList =
+ LISTENER_MAP.computeIfAbsent(keys, k -> new ArrayList<>());
listenerList.add(listener);
}