From: Damyan Ivanov Date: Mon, 28 Jan 2019 20:02:00 +0000 (+0200) Subject: drop unnecessary cast X-Git-Tag: v0.4~2 X-Git-Url: https://git.ktnx.net/?p=mobile-ledger.git;a=commitdiff_plain;h=8b1fd23bad5b963e151e8962ef75091d20bbe462;ds=sidebyside drop unnecessary cast --- diff --git a/app/src/main/java/net/ktnx/mobileledger/utils/Digest.java b/app/src/main/java/net/ktnx/mobileledger/utils/Digest.java index c25ca59e..f02c152e 100644 --- a/app/src/main/java/net/ktnx/mobileledger/utils/Digest.java +++ b/app/src/main/java/net/ktnx/mobileledger/utils/Digest.java @@ -28,7 +28,7 @@ public class Digest { digest = MessageDigest.getInstance(type); } public static char[] hexDigitsFor(byte x) { - return hexDigitsFor((int) ((x<0) ? 256+x : x)); + return hexDigitsFor(((x < 0) ? 256 + x : x)); } public static char[] hexDigitsFor(int x) { if ((x < 0) || (x > 255)) throw new ArithmeticException(