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 GitHub
parent bb800d6067
commit 7b064700a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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