Reuse own API

This commit is contained in:
Gary Gregory 2024-04-03 11:12:20 -04:00
parent 27c225c149
commit 20f70becab
1 changed files with 1 additions and 2 deletions

View File

@ -5347,8 +5347,7 @@ public class StringUtils {
min = first;
}
final int range = Math.max(max.length() / 2 - 1, 0);
final int[] matchIndexes = new int[min.length()];
Arrays.fill(matchIndexes, -1);
final int[] matchIndexes = ArrayFill.fill(new int[min.length()], -1);
final boolean[] matchFlags = new boolean[max.length()];
int matches = 0;
for (int mi = 0; mi < min.length(); mi++) {