From 6554b8c3958d60699935ba1ac4df2ab0147c8a25 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Fri, 6 Dec 2013 13:29:46 +0900 Subject: [PATCH] readableBytes() ==0 -> !isReadable() --- .../handler/codec/memcache/binary/BinaryMemcacheEncoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codec-memcache/src/main/java/io/netty/handler/codec/memcache/binary/BinaryMemcacheEncoder.java b/codec-memcache/src/main/java/io/netty/handler/codec/memcache/binary/BinaryMemcacheEncoder.java index a58243465f..a9dcffb68f 100644 --- a/codec-memcache/src/main/java/io/netty/handler/codec/memcache/binary/BinaryMemcacheEncoder.java +++ b/codec-memcache/src/main/java/io/netty/handler/codec/memcache/binary/BinaryMemcacheEncoder.java @@ -50,7 +50,7 @@ public abstract class BinaryMemcacheEncoder, * @param extras the extras to encode. */ private static void encodeExtras(ByteBuf buf, ByteBuf extras) { - if (extras == null || extras.readableBytes() == 0) { + if (extras == null || !extras.isReadable()) { return; }