Add missing @Override annotations

This commit is contained in:
Norman Maurer 2013-07-15 08:18:57 +02:00
parent cd51674070
commit efd08efd1b
6 changed files with 14 additions and 1 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -15,7 +15,6 @@
*/
package io.netty.handler.codec.spdy;
import java.nio.ByteOrder;
import java.util.Set;
import io.netty.buffer.ByteBuf;