Fix illegal date issues (e.g. year out of bounds)

This commit is contained in:
Reinhard Pointner 2016-10-05 03:06:39 +08:00
parent eab8c2dccc
commit 28ac45ab03
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ public class DateMatcher {
}
public boolean acceptYear(int year) {
return minYear < year && year < maxYear;
return minYear <= year && year <= maxYear;
}
public boolean acceptDate(int year, int month, int day) {