mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
!366 修改FastDatePrinter.java中的警告
Merge pull request !366 from 申劭明/v5-dev
This commit is contained in:
@@ -299,7 +299,7 @@ public class FastDatePrinter extends AbstractDateBasic implements DatePrinter {
|
|||||||
} else if (obj instanceof Calendar) {
|
} else if (obj instanceof Calendar) {
|
||||||
return format((Calendar) obj);
|
return format((Calendar) obj);
|
||||||
} else if (obj instanceof Long) {
|
} else if (obj instanceof Long) {
|
||||||
return format(((Long) obj));
|
return format(((Long) obj).longValue());
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException("Unknown class: " + (obj == null ? "<null>" : obj.getClass().getName()));
|
throw new IllegalArgumentException("Unknown class: " + (obj == null ? "<null>" : obj.getClass().getName()));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user