refactor: улучшение качества кода

This commit is contained in:
Максименко Никита Владимирович
2026-09-23 14:41:05 +03:00
parent 6ac5bb7819
commit d5b54b3f5c
5 changed files with 17 additions and 5 deletions
@@ -31,6 +31,11 @@ import java.util.regex.Pattern;
public record Rule(String type, Pattern pattern, int priority, List<Integer> groups,
Predicate<String> validator, Pattern veto, Pattern context, List<String> anchors) {
public Rule {
groups = List.copyOf(groups);
anchors = List.copyOf(anchors);
}
/**
* Флаги компиляции для всех правил.
*