From 3ea92c3a54de6bd27f0ec026d5fb25597b2b00ae Mon Sep 17 00:00:00 2001 From: godotg Date: Tue, 28 Nov 2023 19:27:40 +0800 Subject: [PATCH] chore[util]: util tool --- .../src/main/java/com/zfoo/protocol/util/MathSafeUtil.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/protocol/src/main/java/com/zfoo/protocol/util/MathSafeUtil.java b/protocol/src/main/java/com/zfoo/protocol/util/MathSafeUtil.java index 04120c8d1..8775d6277 100644 --- a/protocol/src/main/java/com/zfoo/protocol/util/MathSafeUtil.java +++ b/protocol/src/main/java/com/zfoo/protocol/util/MathSafeUtil.java @@ -3,9 +3,7 @@ /** * @author Boone Jack */ -public class MathSafeUtil { - private MathSafeUtil() { - } +public abstract class MathSafeUtil { public static int findNextPositivePowerOfTwo(int value) { assert value > Integer.MIN_VALUE && value < IOUtils.BYTES_PER_MB;