From 38b8d8865a5b54b661f82b3da86f5ce10be04124 Mon Sep 17 00:00:00 2001 From: Violeta Georgieva Date: Fri, 24 Jun 2022 18:32:28 +0300 Subject: [PATCH] Mark method param as Nullable --- .../test/java/reactor/netty/http/client/Http2PoolTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reactor-netty-http/src/test/java/reactor/netty/http/client/Http2PoolTest.java b/reactor-netty-http/src/test/java/reactor/netty/http/client/Http2PoolTest.java index 25f99f4ff4..52b63c9f1e 100644 --- a/reactor-netty-http/src/test/java/reactor/netty/http/client/Http2PoolTest.java +++ b/reactor-netty-http/src/test/java/reactor/netty/http/client/Http2PoolTest.java @@ -32,6 +32,7 @@ import reactor.netty.internal.shaded.reactor.pool.PoolConfig; import reactor.netty.internal.shaded.reactor.pool.PooledRef; import reactor.test.StepVerifier; +import reactor.util.annotation.Nullable; import java.nio.charset.StandardCharsets; import java.time.Duration; @@ -852,7 +853,8 @@ void maxLifeTimeMaxConnectionsReachedWithCustomTimer() throws Exception { assertThat(latch.await(10, TimeUnit.SECONDS)).isTrue(); } - private void doMaxLifeTimeMaxConnectionsReached(BiFunction pendingAcquireTimer) throws Exception { + private void doMaxLifeTimeMaxConnectionsReached(@Nullable BiFunction pendingAcquireTimer) + throws Exception { PoolBuilder> poolBuilder = PoolBuilder.from(Mono.fromSupplier(() -> { Channel channel = new EmbeddedChannel(