[#1710] Add missing duplicate() overrides in interfaces

This commit is contained in:
Norman Maurer 2013-09-02 10:02:12 +02:00
parent 54d788f435
commit 81258e9a4e
5 changed files with 13 additions and 1 deletions

View File

@ -50,7 +50,7 @@ final class ComposedLastHttpContent implements LastHttpContent {
}
@Override
public HttpContent duplicate() {
public LastHttpContent duplicate() {
return copy();
}

View File

@ -28,4 +28,7 @@ public interface FullHttpMessage extends HttpMessage, LastHttpContent {
@Override
FullHttpMessage retain();
@Override
FullHttpMessage duplicate();
}

View File

@ -29,6 +29,9 @@ public interface FullHttpRequest extends HttpRequest, FullHttpMessage {
@Override
FullHttpRequest retain();
@Override
FullHttpRequest duplicate();
@Override
FullHttpRequest setProtocolVersion(HttpVersion version);

View File

@ -29,6 +29,9 @@ public interface FullHttpResponse extends HttpResponse, FullHttpMessage {
@Override
FullHttpResponse retain();
@Override
FullHttpResponse duplicate();
@Override
FullHttpResponse setProtocolVersion(HttpVersion version);

View File

@ -95,4 +95,7 @@ public interface LastHttpContent extends HttpContent {
@Override
LastHttpContent retain();
@Override
LastHttpContent duplicate();
}