ICU-11737 Prevent fallback to the wide form where it shouldn't. Short form should be the defualt per CLDR

X-SVN-Rev: 37516
This commit is contained in:
John Emmons 2015-06-09 21:26:01 +00:00
parent eed4d9c2a1
commit 9485d0d907

View File

@ -830,9 +830,6 @@ public class MeasureFormat extends UFormat {
return true;
}
T fallback = styleMap.get(FormatWidth.SHORT);
if (fallback == null) {
fallback = styleMap.get(FormatWidth.WIDE);
}
if (fallback == null) {
return false;
}
@ -1257,7 +1254,7 @@ public class MeasureFormat extends UFormat {
private static FormatWidth fromFormatWidthOrdinal(int ordinal) {
FormatWidth[] values = FormatWidth.values();
if (ordinal < 0 || ordinal >= values.length) {
return FormatWidth.WIDE;
return FormatWidth.SHORT;
}
return values[ordinal];
}