From 81258e9a4e3179dcef872d9ba2ff39d960e46a1b Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Mon, 2 Sep 2013 10:02:12 +0200 Subject: [PATCH] [#1710] Add missing duplicate() overrides in interfaces --- .../io/netty/handler/codec/http/ComposedLastHttpContent.java | 2 +- .../main/java/io/netty/handler/codec/http/FullHttpMessage.java | 3 +++ .../main/java/io/netty/handler/codec/http/FullHttpRequest.java | 3 +++ .../java/io/netty/handler/codec/http/FullHttpResponse.java | 3 +++ .../main/java/io/netty/handler/codec/http/LastHttpContent.java | 3 +++ 5 files changed, 13 insertions(+), 1 deletion(-) diff --git a/codec-http/src/main/java/io/netty/handler/codec/http/ComposedLastHttpContent.java b/codec-http/src/main/java/io/netty/handler/codec/http/ComposedLastHttpContent.java index be9278bd47..d651d24877 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/http/ComposedLastHttpContent.java +++ b/codec-http/src/main/java/io/netty/handler/codec/http/ComposedLastHttpContent.java @@ -50,7 +50,7 @@ final class ComposedLastHttpContent implements LastHttpContent { } @Override - public HttpContent duplicate() { + public LastHttpContent duplicate() { return copy(); } diff --git a/codec-http/src/main/java/io/netty/handler/codec/http/FullHttpMessage.java b/codec-http/src/main/java/io/netty/handler/codec/http/FullHttpMessage.java index 7a46d3274a..dca74775b3 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/http/FullHttpMessage.java +++ b/codec-http/src/main/java/io/netty/handler/codec/http/FullHttpMessage.java @@ -28,4 +28,7 @@ public interface FullHttpMessage extends HttpMessage, LastHttpContent { @Override FullHttpMessage retain(); + + @Override + FullHttpMessage duplicate(); } diff --git a/codec-http/src/main/java/io/netty/handler/codec/http/FullHttpRequest.java b/codec-http/src/main/java/io/netty/handler/codec/http/FullHttpRequest.java index 615bdc88ea..6e49adc867 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/http/FullHttpRequest.java +++ b/codec-http/src/main/java/io/netty/handler/codec/http/FullHttpRequest.java @@ -29,6 +29,9 @@ public interface FullHttpRequest extends HttpRequest, FullHttpMessage { @Override FullHttpRequest retain(); + @Override + FullHttpRequest duplicate(); + @Override FullHttpRequest setProtocolVersion(HttpVersion version); diff --git a/codec-http/src/main/java/io/netty/handler/codec/http/FullHttpResponse.java b/codec-http/src/main/java/io/netty/handler/codec/http/FullHttpResponse.java index 756916c454..184b609616 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/http/FullHttpResponse.java +++ b/codec-http/src/main/java/io/netty/handler/codec/http/FullHttpResponse.java @@ -29,6 +29,9 @@ public interface FullHttpResponse extends HttpResponse, FullHttpMessage { @Override FullHttpResponse retain(); + @Override + FullHttpResponse duplicate(); + @Override FullHttpResponse setProtocolVersion(HttpVersion version); diff --git a/codec-http/src/main/java/io/netty/handler/codec/http/LastHttpContent.java b/codec-http/src/main/java/io/netty/handler/codec/http/LastHttpContent.java index 9f490def37..f6cfab33dc 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/http/LastHttpContent.java +++ b/codec-http/src/main/java/io/netty/handler/codec/http/LastHttpContent.java @@ -95,4 +95,7 @@ public interface LastHttpContent extends HttpContent { @Override LastHttpContent retain(); + + @Override + LastHttpContent duplicate(); }