!366 修改FastDatePrinter.java中的警告

Merge pull request !366 from 申劭明/v5-dev
This commit is contained in:
Looly 2021-07-14 01:36:40 +00:00 committed by Gitee
commit 84649d2b8e

View File

@ -299,7 +299,7 @@ public class FastDatePrinter extends AbstractDateBasic implements DatePrinter {
} else if (obj instanceof Calendar) {
return format((Calendar) obj);
} else if (obj instanceof Long) {
return format(((Long) obj));
return format(((Long) obj).longValue());
} else {
throw new IllegalArgumentException("Unknown class: " + (obj == null ? "<null>" : obj.getClass().getName()));
}