mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-06 18:18:22 +00:00
Better internal class name
This commit is contained in:
parent
e6796a0ec6
commit
ee2c9cf804
@ -36,7 +36,7 @@
|
|||||||
* @since 3.0
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
// TODO: Before making public move from getDateTimeInstance(Integer, ...) to int; or some other approach.
|
// 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
|
* 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;
|
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
|
@Override
|
||||||
protected FastDateFormat createInstance(final String pattern, final TimeZone timeZone, final Locale locale) {
|
protected FastDateFormat createInstance(final String pattern, final TimeZone timeZone, final Locale locale) {
|
||||||
return new FastDateFormat(pattern, timeZone, locale);
|
return new FastDateFormat(pattern, timeZone, locale);
|
||||||
|
@ -143,7 +143,7 @@ private static Calendar initializeCalendar(final TimeZone timeZone) {
|
|||||||
locale) -> new FastDateParser(format, timeZone, locale, null);
|
locale) -> new FastDateParser(format, timeZone, locale, null);
|
||||||
|
|
||||||
private DateParser getDateInstance(final int dateStyle, final Locale locale) {
|
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());
|
TimeZone.getDefault(), Locale.getDefault());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@ private static Calendar initializeCalendar(final TimeZone tz) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private DatePrinter getDateInstance(final int dateStyle, final Locale locale) {
|
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) {
|
DatePrinter getInstance(final String format) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user