Better internal class name
This commit is contained in:
parent
e6796a0ec6
commit
ee2c9cf804
|
@ -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
|
|
@ -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);
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue