@@ -42,12 +42,12 @@ public interface ByteBuf {
4242 * <p>Writes the given byte into this buffer at the given index. </p>
4343 *
4444 * @param index The index at which the byte will be written
45- * @param b The byte value to be written
45+ * @param value The byte value to be written
4646 * @return This buffer
4747 * @throws IndexOutOfBoundsException If {@code index} is negative or not smaller than the buffer's limit
4848 * @throws java.nio.ReadOnlyBufferException If this buffer is read-only
4949 */
50- ByteBuf put (int index , byte b );
50+ ByteBuf put (int index , byte value );
5151
5252 /**
5353 * Returns the number of elements between the current position and the limit.
@@ -99,60 +99,61 @@ public interface ByteBuf {
9999 *
100100 * <p>Writes the given byte into this buffer at the current position, and then increments the position. </p>
101101 *
102- * @param b The byte to be written
102+ * @param value The byte to be written
103103 * @return This buffer
104104 * @throws java.nio.BufferOverflowException If this buffer's current position is not smaller than its limit
105105 * @throws java.nio.ReadOnlyBufferException If this buffer is read-only
106106 */
107- ByteBuf put (byte b );
107+ ByteBuf put (byte value );
108108
109109 /**
110110 * Writes the given int value into this buffer at the current position,
111111 * using the current byte order, and increments the position by 4.
112112 *
113- * @param b the int value to be written
113+ * @param value the int value to be written
114114 * @return this buffer
115115 * @throws java.nio.BufferOverflowException if there are fewer than 4 bytes remaining in this buffer
116116 * @throws java.nio.ReadOnlyBufferException if this buffer is read-only
117117 * @since 5.4
118118 */
119- ByteBuf putInt (int b );
119+ ByteBuf putInt (int value );
120120
121121 /**
122122 * Writes the given int value into this buffer at the current position,
123123 * using the current byte order, and increments the position by 4.
124124 *
125- * @param b the int value to be written
125+ * @param value the int value to be written
126+ * @param index the index at which the int will be written
126127 * @return this buffer
127128 * @throws java.nio.BufferOverflowException if there are fewer than 4 bytes remaining in this buffer
128129 * @throws java.nio.ReadOnlyBufferException if this buffer is read-only
129130 * @since 5.4
130131 */
131- ByteBuf putInt (int index , int b );
132+ ByteBuf putInt (int index , int value );
132133
133134 /**
134135 * Writes the given double value into this buffer at the current position,
135136 * using the current byte order, and increments the position by 8.
136137 *
137- * @param b the double value to be written
138+ * @param value the double value to be written
138139 * @return this buffer
139140 * @throws java.nio.BufferOverflowException if there are fewer than 8 bytes remaining in this buffer
140141 * @throws java.nio.ReadOnlyBufferException if this buffer is read-only
141142 * @since 5.4
142143 */
143- ByteBuf putDouble (double b );
144+ ByteBuf putDouble (double value );
144145
145146 /**
146147 * Writes the given long value into this buffer at the current position,
147148 * using the current byte order, and increments the position by 8.
148149 *
149- * @param b the long value to be written
150+ * @param value the long value to be written
150151 * @return this buffer
151152 * @throws java.nio.BufferOverflowException if there are fewer than 8 bytes remaining in this buffer
152153 * @throws java.nio.ReadOnlyBufferException if this buffer is read-only
153154 * @since 5.4
154155 */
155- ByteBuf putLong (long b );
156+ ByteBuf putLong (long value );
156157
157158 /**
158159 * <p>Flips this buffer. The limit is set to the current position and then the position is set to zero. If the mark is defined then it
@@ -198,6 +199,7 @@ public interface ByteBuf {
198199 * Returns the offset of the first byte within the backing byte array of
199200 * this buffer.
200201 *
202+ * @return the offset within this buffer's array.
201203 * @throws java.nio.ReadOnlyBufferException If this buffer is backed by an array but is read-only
202204 * @throws UnsupportedOperationException if this buffer is not backed by an accessible array
203205 * @since 5.5
0 commit comments