mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-24 16:47:32 +01:00
Silence lgtm error messages
If the index would indeed be out of bounds, we would simply catch the exception and deal with that.
This commit is contained in:
parent
5140e05732
commit
8d6a9d98da
@ -91,8 +91,8 @@ public class ActivityDetailsParser {
|
|||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
byte type = bytes[i++];
|
byte type = bytes[i++]; // lgtm [java/index-out-of-bounds]]
|
||||||
int timeOffset = BLETypeConversions.toUnsigned(bytes[i++]);
|
int timeOffset = BLETypeConversions.toUnsigned(bytes[i++]); // lgtm [java/index-out-of-bounds]
|
||||||
// handle timeOffset overflows (1 byte, always increasing, relative to base)
|
// handle timeOffset overflows (1 byte, always increasing, relative to base)
|
||||||
if (lastTimeOffset <= timeOffset) {
|
if (lastTimeOffset <= timeOffset) {
|
||||||
timeOffset = timeOffset - lastTimeOffset;
|
timeOffset = timeOffset - lastTimeOffset;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user