From ec7fd2a06592ba5b82a9264352d975b9a807bb76 Mon Sep 17 00:00:00 2001 From: raccoonback Date: Sun, 2 Feb 2025 18:52:09 +0900 Subject: [PATCH] Reduce the scope of access control Signed-off-by: raccoonback --- .../netty/http/client/Http2ConnectionLivenessHandler.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/reactor-netty-http/src/main/java/reactor/netty/http/client/Http2ConnectionLivenessHandler.java b/reactor-netty-http/src/main/java/reactor/netty/http/client/Http2ConnectionLivenessHandler.java index 5e198bb04..c166a7477 100644 --- a/reactor-netty-http/src/main/java/reactor/netty/http/client/Http2ConnectionLivenessHandler.java +++ b/reactor-netty-http/src/main/java/reactor/netty/http/client/Http2ConnectionLivenessHandler.java @@ -28,7 +28,6 @@ import reactor.util.annotation.Nullable; import java.time.Duration; -import java.util.Objects; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.ThreadLocalRandom; @@ -51,7 +50,7 @@ * @author raccoonback * @since 1.2.3 */ -public class Http2ConnectionLivenessHandler extends ChannelDuplexHandler { +final class Http2ConnectionLivenessHandler extends ChannelDuplexHandler { private static final Logger log = Loggers.getLogger(Http2ConnectionLivenessHandler.class); @@ -65,7 +64,6 @@ public class Http2ConnectionLivenessHandler extends ChannelDuplexHandler { private boolean isPingAckPending; public Http2ConnectionLivenessHandler(Http2ConnectionEncoder encoder, @Nullable Duration pingInterval) { - Objects.requireNonNull(encoder, "encoder"); this.encoder = encoder; if (pingInterval != null) {