[#3899] Fix javadoc to use netty 4 API.
Motivation: The javadoc of ByteBuf contained some out-dated code. Modifications: Update code example in javadoc to use netty 4+ API Result: Correct javadocs
This commit is contained in:
parent
bb0b86ce50
commit
75bb7882bf
@ -87,7 +87,7 @@ import java.nio.charset.UnsupportedCharsetException;
|
||||
* <pre>
|
||||
* // Iterates the readable bytes of a buffer.
|
||||
* {@link ByteBuf} buffer = ...;
|
||||
* while (buffer.readable()) {
|
||||
* while (buffer.isReadable()) {
|
||||
* System.out.println(buffer.readByte());
|
||||
* }
|
||||
* </pre>
|
||||
|
Loading…
Reference in New Issue
Block a user