diff --git a/codec-http/src/main/java/io/netty/handler/codec/http/HttpChunkedInput.java b/codec-http/src/main/java/io/netty/handler/codec/http/HttpChunkedInput.java index c9e33c0214..a6d317a1ff 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/http/HttpChunkedInput.java +++ b/codec-http/src/main/java/io/netty/handler/codec/http/HttpChunkedInput.java @@ -41,9 +41,9 @@ import io.netty.handler.stream.ChunkedInput; */ public class HttpChunkedInput implements ChunkedInput { - private ChunkedInput input; + private final ChunkedInput input; + private final LastHttpContent lastHttpContent; private boolean sentLastChunk; - private LastHttpContent lastHttpContent; /** * Creates a new instance using the specified input. @@ -51,7 +51,7 @@ public class HttpChunkedInput implements ChunkedInput { */ public HttpChunkedInput(ChunkedInput input) { this.input = input; - this.lastHttpContent = LastHttpContent.EMPTY_LAST_CONTENT; + lastHttpContent = LastHttpContent.EMPTY_LAST_CONTENT; } /**