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

mkevo pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git


The following commit(s) were added to refs/heads/develop by this push:
     new 516bdc9  GEODE-8955: using marshal instead of toString method (#6045)
516bdc9 is described below

commit 516bdc9322e1068c14e901879a7fb4afeac9b181
Author: Mario Kevo <48509719+mk...@users.noreply.github.com>
AuthorDate: Mon Mar 29 07:35:37 2021 +0200

    GEODE-8955: using marshal instead of toString method (#6045)
---
 .../geode/cache/client/internal/locator/wan/LocatorHelper.java      | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/geode-wan/src/main/java/org/apache/geode/cache/client/internal/locator/wan/LocatorHelper.java
 
b/geode-wan/src/main/java/org/apache/geode/cache/client/internal/locator/wan/LocatorHelper.java
index ffbed71..6f4f070 100644
--- 
a/geode-wan/src/main/java/org/apache/geode/cache/client/internal/locator/wan/LocatorHelper.java
+++ 
b/geode-wan/src/main/java/org/apache/geode/cache/client/internal/locator/wan/LocatorHelper.java
@@ -125,11 +125,11 @@ public class LocatorHelper {
         (ConcurrentHashMap<Integer, Set<String>>) 
locatorListener.getAllServerLocatorsInfo();
 
     Set<String> locatorsSet = new CopyOnWriteHashSet<String>();
-    locatorsSet.add(locator.toString());
+    locatorsSet.add(locator.marshal());
     Set<String> existingValue = 
allServerLocatorsInfo.putIfAbsent(distributedSystemId, locatorsSet);
     if (existingValue != null) {
-      if (!existingValue.contains(locator.toString())) {
-        existingValue.add(locator.toString());
+      if (!existingValue.contains(locator.marshal())) {
+        existingValue.add(locator.marshal());
       }
     }
   }

Reply via email to