From 8b1fd23bad5b963e151e8962ef75091d20bbe462 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Mon, 28 Jan 2019 22:02:00 +0200 Subject: [PATCH] drop unnecessary cast --- app/src/main/java/net/ktnx/mobileledger/utils/Digest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( -- 2.39.2