]> granicus.if.org Git - icu/commitdiff
ICU-13060 Fixing pre-59 deserialization test failures.
authorShane Carr <shane@unicode.org>
Wed, 29 Mar 2017 21:06:16 +0000 (21:06 +0000)
committerShane Carr <shane@unicode.org>
Wed, 29 Mar 2017 21:06:16 +0000 (21:06 +0000)
X-SVN-Rev: 39957

icu4j/main/classes/core/src/com/ibm/icu/text/DecimalFormat.java

index dbdb41fe578a2f0c7251b417af1c8739750a4b5b..26fc716175d2fa09933418886e0467687d357606 100644 (file)
@@ -570,8 +570,6 @@ public class DecimalFormat extends NumberFormat {
           setSignificantDigitsUsed(fieldGetter.get("useSignificantDigits", false));
         } else if (name.equals("currencyPluralInfo")) {
           setCurrencyPluralInfo((CurrencyPluralInfo) fieldGetter.get("currencyPluralInfo", null));
-        } else if (name.equals("currencyUsage")) {
-          setCurrencyUsage((CurrencyUsage) fieldGetter.get("currencyUsage", null));
         } else if (name.equals("mathContext")) {
           setMathContextICU((MathContext) fieldGetter.get("mathContext", null));
         } else if (name.equals("negPrefixPattern")) {
@@ -602,6 +600,7 @@ public class DecimalFormat extends NumberFormat {
           // "attributes"
           // "currencyChoice"
           // "formatPattern"
+          // "currencyUsage" => ignore this because the old code puts currencyUsage directly into min/max fraction.
         }
       }
       // Resolve affixes