readableBytes() ==0 -> !isReadable()
This commit is contained in:
parent
27d020fc35
commit
6554b8c395
@ -50,7 +50,7 @@ public abstract class BinaryMemcacheEncoder<M extends BinaryMemcacheMessage<H>,
|
|||||||
* @param extras the extras to encode.
|
* @param extras the extras to encode.
|
||||||
*/
|
*/
|
||||||
private static void encodeExtras(ByteBuf buf, ByteBuf extras) {
|
private static void encodeExtras(ByteBuf buf, ByteBuf extras) {
|
||||||
if (extras == null || extras.readableBytes() == 0) {
|
if (extras == null || !extras.isReadable()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user