Skip to content

Commit 1a7084c

Browse files
fix: resolve Checkstyle violations in StringRotation and test
1 parent bfee1bb commit 1a7084c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/main/java/com/thealgorithms/strings/StringRotation.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
public class StringRotation {
44

5+
private StringRotation() {
6+
throw new UnsupportedOperationException("Utility class");
7+
}
8+
59
/**
610
* Checks if str2 is a rotation of str1
711
* @param str1 Original string

src/test/java/com/thealgorithms/strings/StringRotationTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.thealgorithms.strings;
22

3-
import static org.junit.jupiter.api.Assertions.*;
3+
import static org.junit.jupiter.api.Assertions.assertFalse;
4+
import static org.junit.jupiter.api.Assertions.assertTrue;
45

56
import org.junit.jupiter.api.Test;
67

0 commit comments

Comments
 (0)