correct the doc of methods:io.netty.buffer.ByteBuf#setBytes(int, io.netty.buffer.ByteBuf) and io.netty.buffer.ByteBuf#setBytes(int, io.netty.buffer.ByteBuf, int) (#11290)

This commit is contained in:
old driver 2021-05-24 16:48:56 +08:00 committed by Chris Vest
parent 9f3f0590a2
commit 8aa371bd45

View File

@ -1129,7 +1129,7 @@ public abstract class ByteBuf implements ReferenceCounted, Comparable<ByteBuf>,
* the number of the transferred bytes while
* {@link #setBytes(int, ByteBuf, int, int)} does not.
* This method does not modify {@code readerIndex} or {@code writerIndex} of
* the source buffer (i.e. {@code this}).
* this buffer (i.e. {@code this}).
*
* @throws IndexOutOfBoundsException
* if the specified {@code index} is less than {@code 0} or
@ -1146,7 +1146,7 @@ public abstract class ByteBuf implements ReferenceCounted, Comparable<ByteBuf>,
* the number of the transferred bytes while
* {@link #setBytes(int, ByteBuf, int, int)} does not.
* This method does not modify {@code readerIndex} or {@code writerIndex} of
* the source buffer (i.e. {@code this}).
* this buffer (i.e. {@code this}).
*
* @param length the number of bytes to transfer
*