mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
!366 修改FastDatePrinter.java中的警告
Merge pull request !366 from 申劭明/v5-dev
This commit is contained in:
commit
84649d2b8e
@ -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()));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user