Clarify ByteBuf.duplicate() semantics.
Motivation: From the javadocs of ByteBuf.duplicate() it is not clear if the reader and writer marks will be duplicated. Modifications: Add sentence to clarify that marks will not be duplicated. Result: Clear semantics.
This commit is contained in:
parent
979fdfd3d3
commit
981292ffc0
@ -1679,6 +1679,7 @@ public abstract class ByteBuf implements ReferenceCounted, Comparable<ByteBuf> {
|
||||
* This method is identical to {@code buf.slice(0, buf.capacity())}.
|
||||
* This method does not modify {@code readerIndex} or {@code writerIndex} of
|
||||
* this buffer.
|
||||
* The reader and writer marks will not be duplicated.
|
||||
*/
|
||||
public abstract ByteBuf duplicate();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user