revert: Fix the recurses infinitely caused by Autoboxing

Closes https://github.com/dromara/hutool/issues/1670
This commit is contained in:
Lin 2021-06-22 23:43:35 +08:00
parent a97e967ecd
commit 8955d03a4f

View File

@ -113,7 +113,7 @@ abstract class FormatCache<F extends Format> {
*/ */
// package protected, for access from FastDateFormat; do not make public or protected // package protected, for access from FastDateFormat; do not make public or protected
F getDateTimeInstance(final int dateStyle, final int timeStyle, final TimeZone timeZone, final Locale locale) { F getDateTimeInstance(final int dateStyle, final int timeStyle, final TimeZone timeZone, final Locale locale) {
return getDateTimeInstance(dateStyle, timeStyle, timeZone, locale); return getDateTimeInstance(Integer.valueOf(dateStyle), Integer.valueOf(timeStyle), timeZone, locale);
} }
/** /**