Skip to content

Commit 6f9c5df

Browse files
author
Samuel Facchinello
committed
fix pmd
1 parent 4a8eff6 commit 6f9c5df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/thealgorithms/others/StringMatchFiniteAutomata.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public static Set<Integer> searchPattern(String text, String pattern) {
6060
state = finiteAutomata[state][text.charAt(i)];
6161

6262
if (state == patternLength) {
63-
indexFound.add((i - patternLength + 1));
63+
indexFound.add(i - patternLength + 1);
6464
}
6565
}
6666
return indexFound;

0 commit comments

Comments
 (0)