From cb1143ec20ba26977e11dcfebdde6b846e5562bb Mon Sep 17 00:00:00 2001 From: xmxsuperstar Date: Sat, 28 Jun 2014 22:55:49 +0800 Subject: [PATCH] fix example missing break statement in ReplayingDecoder --- codec/src/main/java/io/netty/handler/codec/ReplayingDecoder.java | 1 + 1 file changed, 1 insertion(+) diff --git a/codec/src/main/java/io/netty/handler/codec/ReplayingDecoder.java b/codec/src/main/java/io/netty/handler/codec/ReplayingDecoder.java index 8a3e4a3f43..b3605f0d38 100644 --- a/codec/src/main/java/io/netty/handler/codec/ReplayingDecoder.java +++ b/codec/src/main/java/io/netty/handler/codec/ReplayingDecoder.java @@ -190,6 +190,7 @@ import java.util.List; * ByteBuf frame = buf.readBytes(length); * checkpoint(MyDecoderState.READ_LENGTH); * out.add(frame); + * break; * default: * throw new Error("Shouldn't reach here."); * }