diff --git a/src/main/java/io/lettuce/core/ClientOptions.java b/src/main/java/io/lettuce/core/ClientOptions.java index 720b8c2ba8..b2b69ea71d 100644 --- a/src/main/java/io/lettuce/core/ClientOptions.java +++ b/src/main/java/io/lettuce/core/ClientOptions.java @@ -135,10 +135,7 @@ protected Builder() { * * @param pingBeforeActivateConnection true/false * @return {@code this} - * @deprecated since 5.2. PING during connection handshake becomes mandatory with RESP3. This method will be removed - * with Lettuce 6. */ - @Deprecated public Builder pingBeforeActivateConnection(boolean pingBeforeActivateConnection) { this.pingBeforeActivateConnection = pingBeforeActivateConnection; return this; @@ -328,10 +325,7 @@ public ClientOptions.Builder mutate() { * activated and enabled for use. If the check fails, the connect/reconnect is treated as failure. * * @return {@literal true} if {@literal PING} barrier is enabled. - * @deprecated since 5.2. PING during connection handshake becomes mandatory with RESP3. This method will be removed with - * Lettuce 6. */ - @Deprecated public boolean isPingBeforeActivateConnection() { return pingBeforeActivateConnection; } diff --git a/src/main/java/io/lettuce/core/cluster/ClusterClientOptions.java b/src/main/java/io/lettuce/core/cluster/ClusterClientOptions.java index 72da28680e..a82d25fb0e 100644 --- a/src/main/java/io/lettuce/core/cluster/ClusterClientOptions.java +++ b/src/main/java/io/lettuce/core/cluster/ClusterClientOptions.java @@ -177,7 +177,6 @@ public Builder topologyRefreshOptions(ClusterTopologyRefreshOptions topologyRefr } @Override - @Deprecated public Builder pingBeforeActivateConnection(boolean pingBeforeActivateConnection) { super.pingBeforeActivateConnection(pingBeforeActivateConnection); return this;