mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-28 15:02:46 +08:00
style: enable HideUtilityClassConstructor
in checkstyle (#5147)
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
package com.thealgorithms.others;
|
||||
|
||||
public class ArrayRightRotation {
|
||||
public final class ArrayRightRotation {
|
||||
private ArrayRightRotation() {
|
||||
}
|
||||
public static int[] rotateRight(int[] arr, int k) {
|
||||
if (arr == null || arr.length == 0 || k < 0) {
|
||||
throw new IllegalArgumentException("Invalid input");
|
||||
|
@ -5,9 +5,6 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
class CRC16Test {
|
||||
|
||||
CRC16 crc = new CRC16();
|
||||
|
||||
@Test
|
||||
void testCRC16() {
|
||||
// given
|
||||
|
Reference in New Issue
Block a user