mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix equlas
This commit is contained in:
@@ -2,8 +2,6 @@ package cn.hutool.cron.pattern.parser;
|
||||
|
||||
import cn.hutool.cron.CronException;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* 每月的几号值处理<br>
|
||||
* 每月最多31天,32和“L”都表示最后一天
|
||||
@@ -19,7 +17,7 @@ public class DayOfMonthValueParser extends SimpleValueParser {
|
||||
|
||||
@Override
|
||||
public int parse(String value) throws CronException {
|
||||
if ("L".equalsIgnoreCase(value) || Objects.equals("32",value)) {// 每月最后一天
|
||||
if ("L".equalsIgnoreCase(value) || "32".equals(value)) {// 每月最后一天
|
||||
return 32;
|
||||
} else {
|
||||
return super.parse(value);
|
||||
|
@@ -9,7 +9,7 @@ import cn.hutool.cron.CronException;
|
||||
* @author Looly
|
||||
*
|
||||
*/
|
||||
public class DayOfWeekValueParser extends SimpleValueParser {
|
||||
public class DayOfWeekValueParser extends SimpleValueParser {
|
||||
|
||||
/** Weeks aliases. */
|
||||
private static final String[] ALIASES = { "sun", "mon", "tue", "wed", "thu", "fri", "sat" };
|
||||
|
Reference in New Issue
Block a user