From 8aa371bd45bf5991aebf1e3fc753220b5446d46d Mon Sep 17 00:00:00 2001 From: old driver Date: Mon, 24 May 2021 16:48:56 +0800 Subject: [PATCH] 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) --- buffer/src/main/java/io/netty/buffer/ByteBuf.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buffer/src/main/java/io/netty/buffer/ByteBuf.java b/buffer/src/main/java/io/netty/buffer/ByteBuf.java index 04a6a63836..2adb7e6438 100644 --- a/buffer/src/main/java/io/netty/buffer/ByteBuf.java +++ b/buffer/src/main/java/io/netty/buffer/ByteBuf.java @@ -1129,7 +1129,7 @@ public abstract class ByteBuf implements ReferenceCounted, Comparable, * 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, * 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 *