fix pattern bug

This commit is contained in:
Looly
2019-10-09 15:35:53 +08:00
parent 417702f9fc
commit 39a2ee1a47
2 changed files with 2 additions and 1 deletions

View File

@@ -289,7 +289,7 @@ public class CronPattern {
throw new CronException(e, "Invalid pattern [{}], parsing 'year' field error!", pattern);
}
} else {// 不支持年的表达式,全部匹配
this.secondMatchers.add(new AlwaysTrueValueMatcher());
this.yearMatchers.add(new AlwaysTrueValueMatcher());
}
matcherSize++;
}