Improve docstrings for and of
This commit is contained in:
parent
ec10409314
commit
e4f391f626
@ -129,8 +129,9 @@ public final class Unpooled {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new big-endian Java heap buffer with the specified
|
* Creates a new big-endian Java heap buffer with the specified
|
||||||
* {@code capacity}. The new buffer's {@code readerIndex} and
|
* {@code initialCapacity}, that may grow up to {@code maxCapacity}
|
||||||
* {@code writerIndex} are {@code 0}.
|
* The new buffer's {@code readerIndex} and {@code writerIndex} are
|
||||||
|
* {@code 0}.
|
||||||
*/
|
*/
|
||||||
public static ByteBuf buffer(int initialCapacity, int maxCapacity) {
|
public static ByteBuf buffer(int initialCapacity, int maxCapacity) {
|
||||||
return ALLOC.heapBuffer(initialCapacity, maxCapacity);
|
return ALLOC.heapBuffer(initialCapacity, maxCapacity);
|
||||||
@ -138,8 +139,9 @@ public final class Unpooled {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new big-endian direct buffer with the specified
|
* Creates a new big-endian direct buffer with the specified
|
||||||
* {@code capacity}. The new buffer's {@code readerIndex} and
|
* {@code initialCapacity}, that may grow up to {@code maxCapacity}.
|
||||||
* {@code writerIndex} are {@code 0}.
|
* The new buffer's {@code readerIndex} and {@code writerIndex} are
|
||||||
|
* {@code 0}.
|
||||||
*/
|
*/
|
||||||
public static ByteBuf directBuffer(int initialCapacity, int maxCapacity) {
|
public static ByteBuf directBuffer(int initialCapacity, int maxCapacity) {
|
||||||
return ALLOC.directBuffer(initialCapacity, maxCapacity);
|
return ALLOC.directBuffer(initialCapacity, maxCapacity);
|
||||||
|
Loading…
Reference in New Issue
Block a user