Skip to content

Commit b525c5d

Browse files
authored
patch: lint fix in suffix array impl
1 parent d1506a4 commit b525c5d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

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

33
import java.util.Arrays;
44

@@ -49,7 +49,9 @@ public static int[] buildSuffixArray(String text) {
4949

5050
System.arraycopy(tempRank, 0, rank, 0, n);
5151

52-
if (rank[suffixArray[n - 1]] == n - 1) break;
52+
if (rank[suffixArray[n - 1]] == n - 1) {
53+
break;
54+
}
5355
}
5456
return Arrays.stream(suffixArray).mapToInt(Integer::intValue).toArray();
5557
}

0 commit comments

Comments
 (0)