diff --git a/src/main/java/org/springframework/data/gemfire/support/ConnectionEndpoint.java b/src/main/java/org/springframework/data/gemfire/support/ConnectionEndpoint.java index 35aa8584..93c24f41 100644 --- a/src/main/java/org/springframework/data/gemfire/support/ConnectionEndpoint.java +++ b/src/main/java/org/springframework/data/gemfire/support/ConnectionEndpoint.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package org.springframework.data.gemfire.support; import java.net.InetSocketAddress; @@ -77,12 +76,13 @@ public class ConnectionEndpoint implements Cloneable, Comparable -1) { port = parsePort(parseDigits(host.substring(portIndex)), defaultPort); @@ -92,8 +92,8 @@ public class ConnectionEndpoint implements Cloneable, Comparable= 0 && port <= 65535); + return port >= 0 && port <= 65535; } /** @@ -144,7 +144,7 @@ public class ConnectionEndpoint implements Cloneable, Comparable