Closed
Description
Describe the bug
The function NioParams#setWriteByteBufferSize(int writeByteBufferSize)
does not check the bounces of the passed argument writeByteBufferSize
, but the readbyteBufferSize
instead.
Reproduction steps
- Create an instance of
NioParams
- Call
setWriteByteBufferSize(-1)
Expected behavior
The bounces of the argument writebyteBufferSize
are checked / An IllegalArgumentException
is thrown for negative writeByteBufferSize
s.
Additional context
It looks like a copy-paste mistake from NioParams.setReadByteBufferSize(int readByteBufferSize)
.