You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@eventmesh.apache.org by my...@apache.org on 2023/02/27 09:48:11 UTC

[incubator-eventmesh] branch master updated: [#3259] type change to primitive

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 267059af9 [#3259] type change to primitive
     new cafd1dc68 Merge pull request #3276 from nikam14/patch-2
267059af9 is described below

commit 267059af9e101ca6504c62d232580df0cc917c0f
Author: maheshnikam <55...@users.noreply.github.com>
AuthorDate: Mon Feb 27 14:53:46 2023 +0530

    [#3259] type change to primitive
    
    made the change mentioned in issue #3259 .
    changed the integer.
    
    looking forward for your response.
---
 .../eventmesh/registry/zookeeper/service/ZookeeperRegistryService.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eventmesh-registry-plugin/eventmesh-registry-zookeeper/src/main/java/org/apache/eventmesh/registry/zookeeper/service/ZookeeperRegistryService.java b/eventmesh-registry-plugin/eventmesh-registry-zookeeper/src/main/java/org/apache/eventmesh/registry/zookeeper/service/ZookeeperRegistryService.java
index e4f9d33aa..f5af83879 100644
--- a/eventmesh-registry-plugin/eventmesh-registry-zookeeper/src/main/java/org/apache/eventmesh/registry/zookeeper/service/ZookeeperRegistryService.java
+++ b/eventmesh-registry-plugin/eventmesh-registry-zookeeper/src/main/java/org/apache/eventmesh/registry/zookeeper/service/ZookeeperRegistryService.java
@@ -237,7 +237,7 @@ public class ZookeeperRegistryService implements RegistryService {
         try {
             String[] ipPort = eventMeshRegisterInfo.getEndPoint().split(ZookeeperConstant.IP_PORT_SEPARATOR);
             String ip = ipPort[0];
-            Integer port = Integer.valueOf(ipPort[1]);
+            int port = Integer.parseInt(ipPort[1]);
             String eventMeshName = eventMeshRegisterInfo.getEventMeshName();
             String eventMeshClusterName = eventMeshRegisterInfo.getEventMeshClusterName();
             Map<String, Map<String, Integer>> instanceNumMap = eventMeshRegisterInfo.getEventMeshInstanceNumMap();


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: commits-help@eventmesh.apache.org