Revert "Returns after encoding each message not do check following instance types"

Motivation:
This reverts commit 3405aee2ab. This commit introduces a bug and the encoder no longer encodes FullMemcacheMessage objects correctly.

Modifications:
- Revert commit

Result:
Fixes https://github.com/netty/netty/issues/5197
This commit is contained in:
Scott Mitchell 2016-05-02 14:23:41 -07:00
parent cf07f984b1
commit 9ed2f01853

View File

@ -45,7 +45,6 @@ public abstract class AbstractMemcacheObjectEncoder<M extends MemcacheMessage> e
@SuppressWarnings({ "unchecked", "CastConflictsWithInstanceof" })
final M m = (M) msg;
out.add(encodeMessage(ctx, m));
return;
}
if (msg instanceof MemcacheContent || msg instanceof ByteBuf || msg instanceof FileRegion) {