Merge pull request #1673 from CherryRum/v5-dev

revert: Fix the recurses infinitely caused by Autoboxing
This commit is contained in:
Golden Looly 2021-06-24 08:31:01 +08:00 committed by GitHub
commit 1750dcaf38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,7 +113,7 @@ abstract class FormatCache<F extends Format> {
*/
// 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) {
return getDateTimeInstance(dateStyle, timeStyle, timeZone, locale);
return getDateTimeInstance(Integer.valueOf(dateStyle), Integer.valueOf(timeStyle), timeZone, locale);
}
/**