commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1293615 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FastDateParser.java
Date Sat, 25 Feb 2012 14:20:21 GMT
Author: sebb
Date: Sat Feb 25 14:20:20 2012
New Revision: 1293615

URL: http://svn.apache.org/viewvc?rev=1293615&view=rev
Log:
getInstance(locale) is Java 1.6+

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=1293615&r1=1293614&r2=1293615&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
Sat Feb 25 14:20:20 2012
@@ -349,7 +349,7 @@ public class FastDateParser implements D
     KeyValue[] getDisplayNames(int field) {
         KeyValue[] fieldKeyValues= nameValues.get(field);
         if(fieldKeyValues==null) {
-            DateFormatSymbols symbols= DateFormatSymbols.getInstance(locale);
+            DateFormatSymbols symbols= new DateFormatSymbols(locale);
             switch(field) {
             case Calendar.ERA:
                 fieldKeyValues= createKeyValues(symbols.getEras(), null);



Mime
View raw message