[#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:
Norman Maurer 2015-06-19 21:50:05 +02:00
parent ba6319eb6c
commit 8c90d602d7

View File

@ -88,7 +88,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>