Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 19e328f

Browse files
authored
Adjust nullability for Connection#rebind (#3995)
Signed-off-by: Violeta Georgieva <[email protected]>
1 parent 25b1911 commit 19e328f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reactor-netty-core/src/main/java/reactor/netty/Connection.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,15 +330,15 @@ default NettyOutbound outbound() {
330330
}
331331

332332
/**
333-
* Bind a new {@link Connection} reference or null to the channel
333+
* Bind a new {@link Connection} reference to the channel
334334
* attributes only if this instance is currently bound.
335335
*
336336
* @param connection a new connection reference
337337
*
338338
* @return true if bound
339339
* @see #bind
340340
*/
341-
default boolean rebind(@Nullable Connection connection) {
341+
default boolean rebind(Connection connection) {
342342
return channel().attr(ReactorNetty.CONNECTION)
343343
.compareAndSet(this, connection);
344344
}

0 commit comments

Comments
 (0)