From 0ce7baa3ce5138d9b298b67cfcd03d04ba6a66c0 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Mon, 28 Dec 2020 16:12:51 +0100 Subject: fix lint issue, use parseInt instead of valueOf for string to integer conversion --- .../java/se.leap.bitmaskclient/appUpdate/UpdateDownloadManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/fatweb/java/se.leap.bitmaskclient') diff --git a/app/src/fatweb/java/se.leap.bitmaskclient/appUpdate/UpdateDownloadManager.java b/app/src/fatweb/java/se.leap.bitmaskclient/appUpdate/UpdateDownloadManager.java index f2eabc7b..b79c2a91 100644 --- a/app/src/fatweb/java/se.leap.bitmaskclient/appUpdate/UpdateDownloadManager.java +++ b/app/src/fatweb/java/se.leap.bitmaskclient/appUpdate/UpdateDownloadManager.java @@ -171,7 +171,7 @@ public class UpdateDownloadManager implements Logger, DownloadConnector.Download int version = -1; try { - version = Integer.valueOf(versionString); + version = Integer.parseInt(versionString); } catch (NumberFormatException e) { e.printStackTrace(); Log.e(TAG, "could not parse version code: " + versionString); -- cgit v1.2.3