Better internal class name

This commit is contained in:
Gary Gregory 2023-08-18 11:18:56 -04:00
parent e6796a0ec6
commit ee2c9cf804
4 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@ import org.apache.commons.lang3.LocaleUtils;
* @since 3.0
*/
// TODO: Before making public move from getDateTimeInstance(Integer, ...) to int; or some other approach.
abstract class FormatCache<F extends Format> {
abstract class AbstractFormatCache<F extends Format> {
/**
* No date or no time. Used in same parameters as DateFormat.SHORT or DateFormat.LONG

View File

@ -101,7 +101,7 @@ public class FastDateFormat extends Format implements DateParser, DatePrinter {
*/
public static final int SHORT = DateFormat.SHORT;
private static final FormatCache<FastDateFormat> cache = new FormatCache<FastDateFormat>() {
private static final AbstractFormatCache<FastDateFormat> cache = new AbstractFormatCache<FastDateFormat>() {
@Override
protected FastDateFormat createInstance(final String pattern, final TimeZone timeZone, final Locale locale) {
return new FastDateFormat(pattern, timeZone, locale);

View File

@ -143,7 +143,7 @@ public class FastDateParserTest extends AbstractLangTest {
locale) -> new FastDateParser(format, timeZone, locale, null);
private DateParser getDateInstance(final int dateStyle, final Locale locale) {
return getInstance(null, FormatCache.getPatternForStyle(Integer.valueOf(dateStyle), null, locale),
return getInstance(null, AbstractFormatCache.getPatternForStyle(Integer.valueOf(dateStyle), null, locale),
TimeZone.getDefault(), Locale.getDefault());
}

View File

@ -78,7 +78,7 @@ public class FastDatePrinterTest extends AbstractLangTest {
}
private DatePrinter getDateInstance(final int dateStyle, final Locale locale) {
return getInstance(FormatCache.getPatternForStyle(Integer.valueOf(dateStyle), null, locale), TimeZone.getDefault(), Locale.getDefault());
return getInstance(AbstractFormatCache.getPatternForStyle(Integer.valueOf(dateStyle), null, locale), TimeZone.getDefault(), Locale.getDefault());
}
DatePrinter getInstance(final String format) {