5e786e549e
* Fix incorrect behavior of ReadOnlyByteBufferBuf.getBytes(int,ByteBuffer) Motivation It currently will succeed when the destination is larger than the source range, but the ByteBuf javadoc states this should be a failure, as is the case with all the other implementations. Modifications - Fix logic to fail the bounds check in this case - Remove explicit null check which isn't done in any equivalent method - Add unit test Result More correct/consistent behaviour |
||
---|---|---|
.. | ||
src | ||
pom.xml |