diff --git a/common/src/main/java/com/hedera/block/common/utils/MathUtilities.java b/common/src/main/java/com/hedera/block/common/utils/MathUtilities.java index 5052c883..0084d526 100644 --- a/common/src/main/java/com/hedera/block/common/utils/MathUtilities.java +++ b/common/src/main/java/com/hedera/block/common/utils/MathUtilities.java @@ -33,4 +33,6 @@ public static boolean isPowerOfTwo(final int toCheck) { // by short-circuiting the logical AND operation return (0 < toCheck) && ((toCheck & (toCheck - 1)) == 0); } + + private MathUtilities() {} } diff --git a/server/src/test/java/com/hedera/block/server/notifier/NotifierConfigTest.java b/server/src/test/java/com/hedera/block/server/notifier/NotifierConfigTest.java index 33cc8e5e..69d0add0 100644 --- a/server/src/test/java/com/hedera/block/server/notifier/NotifierConfigTest.java +++ b/server/src/test/java/com/hedera/block/server/notifier/NotifierConfigTest.java @@ -32,8 +32,7 @@ public void testNotifierConfig_happyPath() { @Test public void testNotifierConfig_negativeRingBufferSize() { - IllegalArgumentException exception = - assertThrows(IllegalArgumentException.class, () -> new NotifierConfig(-1)); + IllegalArgumentException exception = assertThrows(IllegalArgumentException.class, () -> new NotifierConfig(-1)); assertEquals("Notifier Ring Buffer Size must be positive!", exception.getMessage()); } @@ -50,9 +49,7 @@ public void testMediatorConfig_powerOf2Values() { // Test the non-power of 2 values for (int powerOf2Value : powerOf2Values) { IllegalArgumentException exception = - assertThrows( - IllegalArgumentException.class, - () -> new NotifierConfig(powerOf2Value + 1)); + assertThrows(IllegalArgumentException.class, () -> new NotifierConfig(powerOf2Value + 1)); assertEquals("Notifier Ring Buffer Size must be a power of 2!", exception.getMessage()); } }