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:
Sebastian Bazley 2012-02-25 14:20:20 +00:00
parent 58d279ce5e
commit 5715f15e32
1 changed files with 1 additions and 1 deletions

View File

@ -349,7 +349,7 @@ public int compare(KeyValue left, KeyValue right) {
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);