diff options
author | cyBerta <cyberta@riseup.net> | 2020-12-28 16:12:51 +0100 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2020-12-28 16:12:51 +0100 |
commit | 0ce7baa3ce5138d9b298b67cfcd03d04ba6a66c0 (patch) | |
tree | 4a9019cef50cec0c92e945387f8ae012f2e06d4e | |
parent | 09865483f39e01a52e401baba280260df2c2e766 (diff) |
fix lint issue, use parseInt instead of valueOf for string to integer conversion
-rw-r--r-- | app/src/fatweb/java/se.leap.bitmaskclient/appUpdate/UpdateDownloadManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
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); |