Skip to content

Commit 329c1d9

Browse files
fix: make StringRotation final to satisfy Checkstyle
1 parent 1a7084c commit 329c1d9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
package com.thealgorithms.strings;
22

3-
public class StringRotation {
3+
public final class StringRotation {
44

55
private StringRotation() {
66
throw new UnsupportedOperationException("Utility class");
77
}
88

99
/**
10-
* Checks if str2 is a rotation of str1
11-
* @param str1 Original string
12-
* @param str2 String to check for rotation
10+
* Checks if str2 is a rotation of str1.
11+
*
12+
* @param str1 the original string
13+
* @param str2 the string to check for rotation
1314
* @return true if str2 is a rotation of str1, false otherwise
1415
*/
1516
public static boolean isRotation(String str1, String str2) {

0 commit comments

Comments
 (0)