Author: chas
Date: Fri Apr 25 15:16:07 2014
New Revision: 1590054
URL: http://svn.apache.org/r1590054
Log:
Rename TextStrategy to CaseInsensitiveTextStrategy per sebb's suggestion
Modified:
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FastDateParser.java
Modified:
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FastDateParser.java
URL:
http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FastDateParser.java?rev=1590054&r1=1590053&r2=1590054&view=diff
==============================================================================
---
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FastDateParser.java
(original)
+++
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FastDateParser.java
Fri Apr 25 15:16:07 2014
@@ -544,7 +544,7 @@ public class FastDateParser implements D
if(strategy==null) {
strategy= field==Calendar.ZONE_OFFSET
? new TimeZoneStrategy(locale)
- : new TextStrategy(field, definingCalendar, locale);
+ : new CaseInsensitiveTextStrategy(field, definingCalendar,
locale);
final Strategy inCache= cache.putIfAbsent(locale, strategy);
if(inCache!=null) {
return inCache;
@@ -592,7 +592,7 @@ public class FastDateParser implements D
/**
* A strategy that handles a text field in the parsing pattern
*/
- private static class TextStrategy extends Strategy {
+ private static class CaseInsensitiveTextStrategy extends Strategy {
private final int field;
private final Locale locale;
private final Map<String, Integer> keyValues;
@@ -604,7 +604,7 @@ public class FastDateParser implements D
* @param definingCalendar The Calendar to use
* @param locale The Locale to use
*/
- TextStrategy(final int field, final Calendar definingCalendar, final
Locale locale) {
+ CaseInsensitiveTextStrategy(final int field, final Calendar
definingCalendar, final Locale locale) {
this.field= field;
this.locale= locale;
this.keyValues= getDisplayNames(field, definingCalendar, locale);