This is an automated email from the ASF dual-hosted git repository.
mxsm 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 bdacd2335 [ISSUE #3906] Do some code optimization.[EventMeshUtil]
(#4527)
bdacd2335 is described below
commit bdacd233566e5742380b02c6ed6da17f6cb1c157
Author: tooo-bad <[email protected]>
AuthorDate: Wed Nov 1 17:50:09 2023 +0800
[ISSUE #3906] Do some code optimization.[EventMeshUtil] (#4527)
* fix issue 3825
* return
* fix_patch_issue3906
---
.../src/main/java/org/apache/eventmesh/runtime/util/EventMeshUtil.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/EventMeshUtil.java
b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/EventMeshUtil.java
index 324464cbe..7b95c4fbe 100644
---
a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/EventMeshUtil.java
+++
b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/EventMeshUtil.java
@@ -40,6 +40,7 @@ import java.net.SocketException;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.Arrays;
+import java.util.Collection;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.List;
@@ -237,7 +238,7 @@ public class EventMeshUtil {
}
}
- private static void getIpResult(final List<String> ipv4Result, final
List<String> ipv6Result,
+ private static void getIpResult(final Collection<String> ipv4Result, final
Collection<String> ipv6Result,
final Enumeration<InetAddress> en) {
while (en.hasMoreElements()) {
final InetAddress address = en.nextElement();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]