Remove un-used method parameter
This commit is contained in:
parent
e234abdbf7
commit
4dab51b619
|
@ -362,7 +362,7 @@ public class LengthFieldBasedFrameDecoder extends ByteToMessageDecoder {
|
||||||
in.skipBytes(localBytesToDiscard);
|
in.skipBytes(localBytesToDiscard);
|
||||||
bytesToDiscard -= localBytesToDiscard;
|
bytesToDiscard -= localBytesToDiscard;
|
||||||
this.bytesToDiscard = bytesToDiscard;
|
this.bytesToDiscard = bytesToDiscard;
|
||||||
failIfNecessary(ctx, false);
|
failIfNecessary(false);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -394,7 +394,7 @@ public class LengthFieldBasedFrameDecoder extends ByteToMessageDecoder {
|
||||||
tooLongFrameLength = frameLength;
|
tooLongFrameLength = frameLength;
|
||||||
bytesToDiscard = frameLength - in.readableBytes();
|
bytesToDiscard = frameLength - in.readableBytes();
|
||||||
in.skipBytes(in.readableBytes());
|
in.skipBytes(in.readableBytes());
|
||||||
failIfNecessary(ctx, true);
|
failIfNecessary(true);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -445,7 +445,7 @@ public class LengthFieldBasedFrameDecoder extends ByteToMessageDecoder {
|
||||||
return frameLength;
|
return frameLength;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void failIfNecessary(ChannelHandlerContext ctx, boolean firstDetectionOfTooLongFrame) {
|
private void failIfNecessary(boolean firstDetectionOfTooLongFrame) {
|
||||||
if (bytesToDiscard == 0) {
|
if (bytesToDiscard == 0) {
|
||||||
// Reset to the initial state and tell the handlers that
|
// Reset to the initial state and tell the handlers that
|
||||||
// the frame was too large.
|
// the frame was too large.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user