diff --git a/codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectDecoder.java b/codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectDecoder.java index 7ddf973520..ca4a69f72a 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectDecoder.java +++ b/codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectDecoder.java @@ -407,6 +407,8 @@ public abstract class HttpObjectDecoder extends ByteToMessageDecoder { } break; } + default: + break; } } @@ -492,6 +494,8 @@ public abstract class HttpObjectDecoder extends ByteToMessageDecoder { switch (code) { case 204: case 304: return true; + default: + return false; } } return false;