getInstance() (Java 1.6) supports more locales
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1389939 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6d06d0a1c0
commit
5ffcb8d35b
|
@ -358,7 +358,7 @@ public class FastDateParser implements DateParser, Serializable {
|
|||
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);
|
||||
|
|
Loading…
Reference in New Issue