private void setCurrencyForSymbols() {

        // Bug 4212072 Update the affix strings according to symbols in order to keep the
        // affix strings up to date.  [Richard/GCL]

        // With the introduction of the Currency object, the currency symbols in the DFS
        // object are ignored. For backward compatibility, we check any explicitly set DFS
        // object. If it is a default symbols object for its locale, we change the
        // currency object to one for that locale. If it is custom, we set the currency to
        // null.
        DecimalFormatSymbols def = new DecimalFormatSymbols(symbols.getULocale());

        if (symbols.getCurrencySymbol().equals(def.getCurrencySymbol())
                && symbols.getInternationalCurrencySymbol()
                       .equals(def.getInternationalCurrencySymbol())) {
            setCurrency(Currency.getInstance(symbols.getULocale()));
        } else {
            setCurrency(null);
        }
    }
private void setCurrencyForSymbols ( ) { DecimalFormatSymbols def = new DecimalFormatSymbols ( symbols . getULocale ( ) ) ; if ( symbols . getCurrencySymbol ( ) . equals ( def . getCurrencySymbol ( ) ) && symbols . getInternationalCurrencySymbol ( ) . equals ( def . getInternationalCurrencySymbol ( ) ) ) { setCurrency ( Currency . getInstance ( symbols . getULocale ( ) ) ) ; } else { setCurrency ( null ) ; } }
Update the currency object to match the symbols. This method is used only when the
caller has passed in a symbols object that may not be the default object for its
locale.