aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-02-02 16:33:57 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-02-02 16:33:57 -0800
commit574566c160357f2e2cac45368ec363ab59952a6d (patch)
tree3d0e9c8520c77bc8a6f32e99a7d61bf00ce5b3df /src/main/java/org/traccar
parent8b48d8b52f9c29a892dfe4381b3a7226226a76eb (diff)
downloadtrackermap-server-574566c160357f2e2cac45368ec363ab59952a6d.tar.gz
trackermap-server-574566c160357f2e2cac45368ec363ab59952a6d.tar.bz2
trackermap-server-574566c160357f2e2cac45368ec363ab59952a6d.zip
Fix checkstyle issue
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/protocol/ArnaviFrameDecoder.java3
1 files changed, 2 insertions, 1 deletions
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) {