mirror of
https://gitee.com/dromara/hutool.git
synced 2026-02-09 09:16:26 +08:00
fix code
This commit is contained in:
@@ -150,7 +150,7 @@ public final class JSONUtil {
|
||||
return null;
|
||||
}
|
||||
|
||||
JSON json = null;
|
||||
JSON json;
|
||||
if (obj instanceof JSON) {
|
||||
json = (JSON) obj;
|
||||
} else if (obj instanceof String) {
|
||||
@@ -648,9 +648,6 @@ public final class JSONUtil {
|
||||
if (object instanceof Date || object instanceof Calendar) {
|
||||
return object;
|
||||
}
|
||||
if (object instanceof Calendar) {
|
||||
return ((Calendar) object).getTimeInMillis();
|
||||
}
|
||||
// 枚举类保存其字符串形式(4.0.2新增)
|
||||
if (object instanceof Enum) {
|
||||
return object.toString();
|
||||
|
||||
Reference in New Issue
Block a user