This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-lang.git
The following commit(s) were added to refs/heads/master by this push: new ee2c9cf80 Better internal class name ee2c9cf80 is described below commit ee2c9cf804364844ff8c064bd133630aef5b3b3a Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Fri Aug 18 11:18:56 2023 -0400 Better internal class name --- .../commons/lang3/time/{FormatCache.java => AbstractFormatCache.java} | 2 +- src/main/java/org/apache/commons/lang3/time/FastDateFormat.java | 2 +- src/test/java/org/apache/commons/lang3/time/FastDateParserTest.java | 2 +- src/test/java/org/apache/commons/lang3/time/FastDatePrinterTest.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/time/FormatCache.java b/src/main/java/org/apache/commons/lang3/time/AbstractFormatCache.java similarity index 99% rename from src/main/java/org/apache/commons/lang3/time/FormatCache.java rename to src/main/java/org/apache/commons/lang3/time/AbstractFormatCache.java index 38dbe1677..eb8a9e6c0 100644 --- a/src/main/java/org/apache/commons/lang3/time/FormatCache.java +++ b/src/main/java/org/apache/commons/lang3/time/AbstractFormatCache.java @@ -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 diff --git a/src/main/java/org/apache/commons/lang3/time/FastDateFormat.java b/src/main/java/org/apache/commons/lang3/time/FastDateFormat.java index 7bec111bc..29ba451d1 100644 --- a/src/main/java/org/apache/commons/lang3/time/FastDateFormat.java +++ b/src/main/java/org/apache/commons/lang3/time/FastDateFormat.java @@ -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); diff --git a/src/test/java/org/apache/commons/lang3/time/FastDateParserTest.java b/src/test/java/org/apache/commons/lang3/time/FastDateParserTest.java index dea55a89b..6473982a6 100644 --- a/src/test/java/org/apache/commons/lang3/time/FastDateParserTest.java +++ b/src/test/java/org/apache/commons/lang3/time/FastDateParserTest.java @@ -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()); } diff --git a/src/test/java/org/apache/commons/lang3/time/FastDatePrinterTest.java b/src/test/java/org/apache/commons/lang3/time/FastDatePrinterTest.java index cf7c2488b..8da22d4e2 100644 --- a/src/test/java/org/apache/commons/lang3/time/FastDatePrinterTest.java +++ b/src/test/java/org/apache/commons/lang3/time/FastDatePrinterTest.java @@ -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) {