From 2b4bde05b635ce7693a85cbb91869721a8bc0b81 Mon Sep 17 00:00:00 2001 From: HenkGrent Date: Tue, 12 Mar 2019 19:24:31 +0100 Subject: [PATCH] Unnecessary length check removed Length can not return a value less than 0, therefore this check is not needed. --- android/src/com/mapswithme/maps/location/PlatformSocket.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/com/mapswithme/maps/location/PlatformSocket.java b/android/src/com/mapswithme/maps/location/PlatformSocket.java index 5cbfda76ff..002e783efc 100644 --- a/android/src/com/mapswithme/maps/location/PlatformSocket.java +++ b/android/src/com/mapswithme/maps/location/PlatformSocket.java @@ -248,7 +248,7 @@ class PlatformSocket return false; } - if (data.length < 0 || count < 0 || count > data.length) + if (count < 0 || count > data.length) { LOGGER.e(TAG, "Illegal arguments, data.length = " + data.length + ", count = " + count + "\n"); return false;