This commit is contained in:
Looly 2024-04-21 21:06:40 +08:00
parent f5202f36b8
commit 2fcf6a79ee

View File

@ -279,8 +279,10 @@ public class PatternMatcher {
final int min; final int min;
if (matcher instanceof AlwaysTrueMatcher) { if (matcher instanceof AlwaysTrueMatcher) {
// 匹配所有时获取这个字段本身的最小值
min = part.getMin(); min = part.getMin();
} else if (matcher instanceof BoolArrayMatcher) { } else if (matcher instanceof BoolArrayMatcher) {
// 获取用户定义的最小值
min = ((BoolArrayMatcher) matcher).getMinValue(); min = ((BoolArrayMatcher) matcher).getMinValue();
} else { } else {
throw new IllegalArgumentException("Invalid matcher: " + matcher.getClass().getName()); throw new IllegalArgumentException("Invalid matcher: " + matcher.getClass().getName());