From 0ce7baa3ce5138d9b298b67cfcd03d04ba6a66c0 Mon Sep 17 00:00:00 2001 From: cyBerta <cyberta@riseup.net> Date: Mon, 28 Dec 2020 16:12:51 +0100 Subject: [PATCH] fix lint issue, use parseInt instead of valueOf for string to integer conversion --- .../se.leap.bitmaskclient/appUpdate/UpdateDownloadManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 f2eabc7bf..b79c2a911 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); -- GitLab