From cf8a88b7b055f8c35ed3c595fcd70240a83fdb8b Mon Sep 17 00:00:00 2001 From: Miles Vella <673-vella@users.noreply.gitlab.cs.uni-duesseldorf.de> Date: Mon, 17 Feb 2025 19:03:26 +0100 Subject: [PATCH] use builtin clojure.BigInt constants --- .../src/main/java/de/hhu/stups/btypes/BInteger.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/btypes_big_integer/src/main/java/de/hhu/stups/btypes/BInteger.java b/btypes_big_integer/src/main/java/de/hhu/stups/btypes/BInteger.java index fd0404f55..38fa40948 100755 --- a/btypes_big_integer/src/main/java/de/hhu/stups/btypes/BInteger.java +++ b/btypes_big_integer/src/main/java/de/hhu/stups/btypes/BInteger.java @@ -14,8 +14,8 @@ public final class BInteger extends Number implements Comparable<BInteger>, BObj private static final BigInteger JBI_TWO = BigInteger.valueOf(2); private static final BigInteger JBI_MINUS_ONE = BigInteger.valueOf(-1); - private static final BigInt CBI_ZERO = BigInt.fromLong(0); - private static final BigInt CBI_ONE = BigInt.fromLong(1); + private static final BigInt CBI_ZERO = BigInt.ZERO; + private static final BigInt CBI_ONE = BigInt.ONE; private static final BigInt CBI_TWO = BigInt.fromLong(2); private static final BigInt CBI_MINUS_ONE = BigInt.fromLong(-1); -- GitLab