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

@ -19,6 +19,7 @@
* 【all】 修复阶乘计算错误bugissue#I12XE4@Gitee
* 【http】 修复disableCookie无效问题issue#572@Github
* 【http】 修复HttpResponse.getCookies导致的问题issue#572@Github
* 【cron】 修复年无效匹配错误问题pr#578@Github
-------------------------------------------------------------------------------------------------------------

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++;
}