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 360ed6624 [ISSUE #3902] Do some code optimization.[NetUtils] (#4528)
360ed6624 is described below

commit 360ed662423a504a0efba50a15e8bbed7ed1535a
Author: tooo-bad <[email protected]>
AuthorDate: Sat Nov 4 18:37:29 2023 +0800

    [ISSUE #3902] Do some code optimization.[NetUtils] (#4528)
    
    * fix issue 3825
    
    * return
    
    * fix issue 3902
    
    * fix codestyle
---
 .../src/main/java/org/apache/eventmesh/common/utils/NetUtils.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/eventmesh-common/src/main/java/org/apache/eventmesh/common/utils/NetUtils.java
 
b/eventmesh-common/src/main/java/org/apache/eventmesh/common/utils/NetUtils.java
index 0aae29c4e..2c788d29b 100644
--- 
a/eventmesh-common/src/main/java/org/apache/eventmesh/common/utils/NetUtils.java
+++ 
b/eventmesh-common/src/main/java/org/apache/eventmesh/common/utils/NetUtils.java
@@ -30,8 +30,8 @@ import java.io.UnsupportedEncodingException;
 import java.net.InetSocketAddress;
 import java.net.URLDecoder;
 import java.util.Arrays;
+import java.util.Collection;
 import java.util.HashMap;
-import java.util.List;
 import java.util.Map;
 
 import com.sun.net.httpserver.HttpExchange;
@@ -71,7 +71,7 @@ public class NetUtils {
         return result;
     }
 
-    public static String addressToString(List<InetSocketAddress> clients) {
+    public static String addressToString(Collection<InetSocketAddress> 
clients) {
         if (clients.isEmpty()) {
             return "no session had been closed";
         }


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

Reply via email to