This is an automated email from the ASF dual-hosted git repository.

mikexue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/eventmesh.git


The following commit(s) were added to refs/heads/master by this push:
     new 7b18ca651 [ISSUE #3901] Method needlessly defines parameter with 
concrete classes [IPUtils]
7b18ca651 is described below

commit 7b18ca651750250e594c072001bf34611e7e24c7
Author: kyooosukedn <[email protected]>
AuthorDate: Wed Jun 14 04:25:43 2023 +0200

    [ISSUE #3901] Method needlessly defines parameter with concrete classes 
[IPUtils]
---
 .../src/main/java/org/apache/eventmesh/common/utils/IPUtils.java       | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/eventmesh-common/src/main/java/org/apache/eventmesh/common/utils/IPUtils.java 
b/eventmesh-common/src/main/java/org/apache/eventmesh/common/utils/IPUtils.java
index c4e7ca46f..9f91f91c9 100644
--- 
a/eventmesh-common/src/main/java/org/apache/eventmesh/common/utils/IPUtils.java
+++ 
b/eventmesh-common/src/main/java/org/apache/eventmesh/common/utils/IPUtils.java
@@ -29,6 +29,7 @@ import java.net.URL;
 import java.net.UnknownHostException;
 import java.util.ArrayList;
 import java.util.Arrays;
+import java.util.Collection;
 import java.util.Enumeration;
 import java.util.List;
 import java.util.regex.Matcher;
@@ -136,7 +137,7 @@ public class IPUtils {
         return m.matches();
     }
 
-    private static void getIpResult(List<String> ipv4Result, List<String> 
ipv6Result, Enumeration<InetAddress> en) {
+    private static void getIpResult(Collection<String> ipv4Result, 
Collection<String> ipv6Result, Enumeration<InetAddress> en) {
         while (en.hasMoreElements()) {
             final InetAddress address = en.nextElement();
             if (!address.isLoopbackAddress()) {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to