commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1389939 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FastDateParser.java
Date Tue, 25 Sep 2012 15:41:57 GMT
Author: sebb
Date: Tue Sep 25 15:41:57 2012
New Revision: 1389939

URL: http://svn.apache.org/viewvc?rev=1389939&view=rev
Log:
getInstance() (Java 1.6) supports more locales

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=1389939&r1=1389938&r2=1389939&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
Tue Sep 25 15:41:57 2012
@@ -358,7 +358,7 @@ public class FastDateParser implements D
         Integer fieldInt = Integer.valueOf(field);
         KeyValue[] fieldKeyValues= nameValues.get(fieldInt);
         if(fieldKeyValues==null) {
-            DateFormatSymbols symbols= new DateFormatSymbols(locale);
+            DateFormatSymbols symbols= DateFormatSymbols.getInstance(locale);
             switch(field) {
             case Calendar.ERA:
                 fieldKeyValues= createKeyValues(symbols.getEras(), null);



Mime
View raw message