diff --git a/codec-http/src/test/java/io/netty/handler/codec/http/HttpResponseDecoderTest.java b/codec-http/src/test/java/io/netty/handler/codec/http/HttpResponseDecoderTest.java index 6ab13c2fee..5706b06a34 100644 --- a/codec-http/src/test/java/io/netty/handler/codec/http/HttpResponseDecoderTest.java +++ b/codec-http/src/test/java/io/netty/handler/codec/http/HttpResponseDecoderTest.java @@ -542,7 +542,7 @@ public class HttpResponseDecoderTest { assertThat(ch.finish(), is(true)); ByteBuf expected = Unpooled.wrappedBuffer(otherData); - ByteBuf buffer = ch.readInbound(); + ByteBuf buffer = (ByteBuf) ch.readInbound(); try { assertEquals(expected, buffer); } finally {