albertogpz commented on a change in pull request #6116:
URL: https://github.com/apache/geode/pull/6116#discussion_r594421863



##########
File path: 
geode-common/src/main/java/org/apache/geode/internal/inet/LocalHostUtil.java
##########
@@ -242,6 +242,10 @@ public static InetAddress getAnyLocalAddress() {
     return new InetSocketAddress(0).getAddress();
   }
 
+  public static boolean isWildcardAddress(String address) {
+    return (address != null && (address.equals("0.0.0.0") || 
address.equals("::")));

Review comment:
       How about simplifying this as follows?:
   return "0.0.0.0".equals(address) || "::".equals(address);




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to