Skip to content

Commit ec7fd2a

Browse files
committed
Reduce the scope of access control
Signed-off-by: raccoonback <[email protected]>
1 parent 6044fc9 commit ec7fd2a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

reactor-netty-http/src/main/java/reactor/netty/http/client/Http2ConnectionLivenessHandler.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import reactor.util.annotation.Nullable;
2929

3030
import java.time.Duration;
31-
import java.util.Objects;
3231
import java.util.concurrent.ScheduledFuture;
3332
import java.util.concurrent.ThreadLocalRandom;
3433

@@ -51,7 +50,7 @@
5150
* @author raccoonback
5251
* @since 1.2.3
5352
*/
54-
public class Http2ConnectionLivenessHandler extends ChannelDuplexHandler {
53+
final class Http2ConnectionLivenessHandler extends ChannelDuplexHandler {
5554

5655
private static final Logger log = Loggers.getLogger(Http2ConnectionLivenessHandler.class);
5756

@@ -65,7 +64,6 @@ public class Http2ConnectionLivenessHandler extends ChannelDuplexHandler {
6564
private boolean isPingAckPending;
6665

6766
public Http2ConnectionLivenessHandler(Http2ConnectionEncoder encoder, @Nullable Duration pingInterval) {
68-
Objects.requireNonNull(encoder, "encoder");
6967
this.encoder = encoder;
7068

7169
if (pingInterval != null) {

0 commit comments

Comments
 (0)