Simplification of boolean expression
Motivation: Simplify code and reduction the logical operations. Modifications: Simplify boolean expression. Result: Code less and simpler.
This commit is contained in:
parent
6353c229fd
commit
ccd1d77714
@ -467,8 +467,7 @@ public class LengthFieldBasedFrameDecoder extends ByteToMessageDecoder {
|
|||||||
long tooLongFrameLength = this.tooLongFrameLength;
|
long tooLongFrameLength = this.tooLongFrameLength;
|
||||||
this.tooLongFrameLength = 0;
|
this.tooLongFrameLength = 0;
|
||||||
discardingTooLongFrame = false;
|
discardingTooLongFrame = false;
|
||||||
if (!failFast ||
|
if (!failFast || firstDetectionOfTooLongFrame) {
|
||||||
failFast && firstDetectionOfTooLongFrame) {
|
|
||||||
fail(tooLongFrameLength);
|
fail(tooLongFrameLength);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user