getInstance(locale) is Java 1.6+
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1293615 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
58d279ce5e
commit
5715f15e32
|
@ -349,7 +349,7 @@ public class FastDateParser implements DateParser, Serializable {
|
||||||
KeyValue[] getDisplayNames(int field) {
|
KeyValue[] getDisplayNames(int field) {
|
||||||
KeyValue[] fieldKeyValues= nameValues.get(field);
|
KeyValue[] fieldKeyValues= nameValues.get(field);
|
||||||
if(fieldKeyValues==null) {
|
if(fieldKeyValues==null) {
|
||||||
DateFormatSymbols symbols= DateFormatSymbols.getInstance(locale);
|
DateFormatSymbols symbols= new DateFormatSymbols(locale);
|
||||||
switch(field) {
|
switch(field) {
|
||||||
case Calendar.ERA:
|
case Calendar.ERA:
|
||||||
fieldKeyValues= createKeyValues(symbols.getEras(), null);
|
fieldKeyValues= createKeyValues(symbols.getEras(), null);
|
||||||
|
|
Loading…
Reference in New Issue