Improve docstrings for and of

This commit is contained in:
Alex Petrov 2013-11-08 12:02:33 +01:00 committed by Norman Maurer
parent ec10409314
commit e4f391f626

View File

@ -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);