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:
Sebastian Bazley 2012-09-25 15:41:57 +00:00
parent 6d06d0a1c0
commit 5ffcb8d35b
1 changed files with 1 additions and 1 deletions

View File

@ -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);