Remove redundant no-arg constructors
This commit is contained in:
parent
3d364c7f75
commit
957154c005
@ -25,12 +25,6 @@ import io.netty.util.CharsetUtil;
|
|||||||
*/
|
*/
|
||||||
public class HttpRequestEncoder extends HttpMessageEncoder {
|
public class HttpRequestEncoder extends HttpMessageEncoder {
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates a new instance.
|
|
||||||
*/
|
|
||||||
public HttpRequestEncoder() {
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void encodeInitialLine(ByteBuf buf, HttpMessage message) throws Exception {
|
protected void encodeInitialLine(ByteBuf buf, HttpMessage message) throws Exception {
|
||||||
HttpRequest request = (HttpRequest) message;
|
HttpRequest request = (HttpRequest) message;
|
||||||
|
@ -25,12 +25,6 @@ import io.netty.util.CharsetUtil;
|
|||||||
*/
|
*/
|
||||||
public class HttpResponseEncoder extends HttpMessageEncoder {
|
public class HttpResponseEncoder extends HttpMessageEncoder {
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates a new instance.
|
|
||||||
*/
|
|
||||||
public HttpResponseEncoder() {
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void encodeInitialLine(ByteBuf buf, HttpMessage message) throws Exception {
|
protected void encodeInitialLine(ByteBuf buf, HttpMessage message) throws Exception {
|
||||||
HttpResponse response = (HttpResponse) message;
|
HttpResponse response = (HttpResponse) message;
|
||||||
|
@ -20,12 +20,6 @@ package io.netty.handler.codec.spdy;
|
|||||||
*/
|
*/
|
||||||
public class DefaultSpdyNoOpFrame implements SpdyNoOpFrame {
|
public class DefaultSpdyNoOpFrame implements SpdyNoOpFrame {
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates a new instance.
|
|
||||||
*/
|
|
||||||
public DefaultSpdyNoOpFrame() {
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return getClass().getSimpleName();
|
return getClass().getSimpleName();
|
||||||
|
@ -29,12 +29,6 @@ public class DefaultSpdySettingsFrame implements SpdySettingsFrame {
|
|||||||
private boolean clear;
|
private boolean clear;
|
||||||
private final Map<Integer, Setting> settingsMap = new TreeMap<Integer, Setting>();
|
private final Map<Integer, Setting> settingsMap = new TreeMap<Integer, Setting>();
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates a new instance.
|
|
||||||
*/
|
|
||||||
public DefaultSpdySettingsFrame() {
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Set<Integer> getIds() {
|
public Set<Integer> getIds() {
|
||||||
return settingsMap.keySet();
|
return settingsMap.keySet();
|
||||||
|
@ -29,9 +29,6 @@ final class SpdySession {
|
|||||||
private final Map<Integer, StreamState> activeStreams =
|
private final Map<Integer, StreamState> activeStreams =
|
||||||
new ConcurrentHashMap<Integer, StreamState>();
|
new ConcurrentHashMap<Integer, StreamState>();
|
||||||
|
|
||||||
SpdySession() {
|
|
||||||
}
|
|
||||||
|
|
||||||
int numActiveStreams() {
|
int numActiveStreams() {
|
||||||
return activeStreams.size();
|
return activeStreams.size();
|
||||||
}
|
}
|
||||||
|
@ -42,12 +42,6 @@ public class ProtobufVarint32FrameDecoder extends ByteToMessageDecoder<Object> {
|
|||||||
// TODO maxFrameLength + safe skip + fail-fast option
|
// TODO maxFrameLength + safe skip + fail-fast option
|
||||||
// (just like LengthFieldBasedFrameDecoder)
|
// (just like LengthFieldBasedFrameDecoder)
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates a new instance.
|
|
||||||
*/
|
|
||||||
public ProtobufVarint32FrameDecoder() {
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Object decode(ChannelHandlerContext ctx, ByteBuf in) throws Exception {
|
public Object decode(ChannelHandlerContext ctx, ByteBuf in) throws Exception {
|
||||||
in.markReaderIndex();
|
in.markReaderIndex();
|
||||||
|
@ -28,11 +28,6 @@ import java.util.Map;
|
|||||||
public class SctpMessageCompletionHandler extends ChannelInboundMessageHandlerAdapter<SctpMessage> {
|
public class SctpMessageCompletionHandler extends ChannelInboundMessageHandlerAdapter<SctpMessage> {
|
||||||
private Map<Integer, ByteBuf> fragments = new HashMap<Integer, ByteBuf>();
|
private Map<Integer, ByteBuf> fragments = new HashMap<Integer, ByteBuf>();
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
public SctpMessageCompletionHandler() {
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void messageReceived(ChannelHandlerContext ctx, SctpMessage msg) throws Exception {
|
public void messageReceived(ChannelHandlerContext ctx, SctpMessage msg) throws Exception {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user