From 574566c160357f2e2cac45368ec363ab59952a6d Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 2 Feb 2020 16:33:57 -0800 Subject: Fix checkstyle issue --- src/main/java/org/traccar/protocol/ArnaviFrameDecoder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java/org/traccar') diff --git a/src/main/java/org/traccar/protocol/ArnaviFrameDecoder.java b/src/main/java/org/traccar/protocol/ArnaviFrameDecoder.java index 3db11113d..473e8b2c7 100644 --- a/src/main/java/org/traccar/protocol/ArnaviFrameDecoder.java +++ b/src/main/java/org/traccar/protocol/ArnaviFrameDecoder.java @@ -59,7 +59,8 @@ public class ArnaviFrameDecoder extends BaseFrameDecoder { length = 4; } else { int index = 2; - while (index + PACKET_WRAPPER_LENGTH < buf.readableBytes() && buf.getByte(index) != PACKAGE_END_SIGN) { + while (index + PACKET_WRAPPER_LENGTH < buf.readableBytes() + && buf.getByte(index) != PACKAGE_END_SIGN) { index += PACKET_WRAPPER_LENGTH + buf.getUnsignedShortLE(index + 1); } if (buf.getByte(index) != PACKAGE_END_SIGN) { -- cgit v1.2.3