]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/java/net/ktnx/mobileledger/utils/Digest.java
drop unnecessary cast
[mobile-ledger.git] / app / src / main / java / net / ktnx / mobileledger / utils / Digest.java
index c25ca59e9f5951da107728d19afd04fb8f1948c8..f02c152e69fc03e35eb5df1eb4939b25c1bad263 100644 (file)
@@ -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(