Рефакторинг

This commit is contained in:
serega6531
2020-04-14 22:35:33 +03:00
parent 01a3c0e512
commit d975f425f8
13 changed files with 29 additions and 33 deletions

View File

@@ -32,15 +32,9 @@ class PatternMatcher {
private void match(Pattern pattern) {
switch (pattern.getSearchType()) {
case REGEX:
matchRegex(pattern);
break;
case SUBSTRING:
matchSubstring(pattern);
break;
case SUBBYTES:
matchSubbytes(pattern);
break;
case REGEX -> matchRegex(pattern);
case SUBSTRING -> matchSubstring(pattern);
case SUBBYTES -> matchSubbytes(pattern);
}
}