From efd08efd1b9a45189994c50792076655bb42dbc8 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Mon, 15 Jul 2013 08:18:57 +0200 Subject: [PATCH] Add missing @Override annotations --- .../io/netty/handler/codec/spdy/DefaultSpdyGoAwayFrame.java | 4 ++++ .../io/netty/handler/codec/spdy/DefaultSpdyHeadersFrame.java | 2 ++ .../io/netty/handler/codec/spdy/DefaultSpdyPingFrame.java | 2 ++ .../netty/handler/codec/spdy/DefaultSpdyRstStreamFrame.java | 2 ++ .../io/netty/handler/codec/spdy/DefaultSpdyStreamFrame.java | 4 ++++ .../netty/handler/codec/spdy/SpdyHeaderBlockRawEncoder.java | 1 - 6 files changed, 14 insertions(+), 1 deletion(-) diff --git a/codec-http/src/main/java/io/netty/handler/codec/spdy/DefaultSpdyGoAwayFrame.java b/codec-http/src/main/java/io/netty/handler/codec/spdy/DefaultSpdyGoAwayFrame.java index 6d0d379581..956fa7de70 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/spdy/DefaultSpdyGoAwayFrame.java +++ b/codec-http/src/main/java/io/netty/handler/codec/spdy/DefaultSpdyGoAwayFrame.java @@ -55,10 +55,12 @@ public class DefaultSpdyGoAwayFrame implements SpdyGoAwayFrame { setStatus(status); } + @Override public int getLastGoodStreamId() { return lastGoodStreamId; } + @Override public SpdyGoAwayFrame setLastGoodStreamId(int lastGoodStreamId) { if (lastGoodStreamId < 0) { throw new IllegalArgumentException("Last-good-stream-ID" @@ -68,10 +70,12 @@ public class DefaultSpdyGoAwayFrame implements SpdyGoAwayFrame { return this; } + @Override public SpdySessionStatus getStatus() { return status; } + @Override public SpdyGoAwayFrame setStatus(SpdySessionStatus status) { this.status = status; return this; diff --git a/codec-http/src/main/java/io/netty/handler/codec/spdy/DefaultSpdyHeadersFrame.java b/codec-http/src/main/java/io/netty/handler/codec/spdy/DefaultSpdyHeadersFrame.java index 30600c729f..f7f41f04ed 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/spdy/DefaultSpdyHeadersFrame.java +++ b/codec-http/src/main/java/io/netty/handler/codec/spdy/DefaultSpdyHeadersFrame.java @@ -61,10 +61,12 @@ public class DefaultSpdyHeadersFrame extends DefaultSpdyStreamFrame return this; } + @Override public boolean isTruncated() { return truncated; } + @Override public SpdyHeadersFrame setTruncated() { truncated = true; return this; diff --git a/codec-http/src/main/java/io/netty/handler/codec/spdy/DefaultSpdyPingFrame.java b/codec-http/src/main/java/io/netty/handler/codec/spdy/DefaultSpdyPingFrame.java index d2d6b5c092..17d7b14363 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/spdy/DefaultSpdyPingFrame.java +++ b/codec-http/src/main/java/io/netty/handler/codec/spdy/DefaultSpdyPingFrame.java @@ -33,10 +33,12 @@ public class DefaultSpdyPingFrame implements SpdyPingFrame { setId(id); } + @Override public int getId() { return id; } + @Override public SpdyPingFrame setId(int id) { this.id = id; return this; diff --git a/codec-http/src/main/java/io/netty/handler/codec/spdy/DefaultSpdyRstStreamFrame.java b/codec-http/src/main/java/io/netty/handler/codec/spdy/DefaultSpdyRstStreamFrame.java index 894b3cc6ba..bd259ae1c2 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/spdy/DefaultSpdyRstStreamFrame.java +++ b/codec-http/src/main/java/io/netty/handler/codec/spdy/DefaultSpdyRstStreamFrame.java @@ -58,10 +58,12 @@ public class DefaultSpdyRstStreamFrame extends DefaultSpdyStreamFrame return this; } + @Override public SpdyStreamStatus getStatus() { return status; } + @Override public SpdyRstStreamFrame setStatus(SpdyStreamStatus status) { this.status = status; return this; diff --git a/codec-http/src/main/java/io/netty/handler/codec/spdy/DefaultSpdyStreamFrame.java b/codec-http/src/main/java/io/netty/handler/codec/spdy/DefaultSpdyStreamFrame.java index 5353699cc7..4d7608a5d1 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/spdy/DefaultSpdyStreamFrame.java +++ b/codec-http/src/main/java/io/netty/handler/codec/spdy/DefaultSpdyStreamFrame.java @@ -32,10 +32,12 @@ public abstract class DefaultSpdyStreamFrame implements SpdyStreamFrame { setStreamId(streamId); } + @Override public int getStreamId() { return streamId; } + @Override public SpdyStreamFrame setStreamId(int streamId) { if (streamId <= 0) { throw new IllegalArgumentException( @@ -45,10 +47,12 @@ public abstract class DefaultSpdyStreamFrame implements SpdyStreamFrame { return this; } + @Override public boolean isLast() { return last; } + @Override public SpdyStreamFrame setLast(boolean last) { this.last = last; return this; diff --git a/codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyHeaderBlockRawEncoder.java b/codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyHeaderBlockRawEncoder.java index 4ca60f2dfb..b439a30a61 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyHeaderBlockRawEncoder.java +++ b/codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyHeaderBlockRawEncoder.java @@ -15,7 +15,6 @@ */ package io.netty.handler.codec.spdy; -import java.nio.ByteOrder; import java.util.Set; import io.netty.buffer.ByteBuf;