jdk/src/java.base/share/classes/java/util/Currency.java
changeset 32930 7616af8ec145
parent 32649 2ee9017c7597
child 36113 cd5af2894aee
equal deleted inserted replaced
32929:7e1bb9268b8a 32930:7616af8ec145
   369      *
   369      *
   370      * @param locale the locale for whose country a <code>Currency</code>
   370      * @param locale the locale for whose country a <code>Currency</code>
   371      * instance is needed
   371      * instance is needed
   372      * @return the <code>Currency</code> instance for the country of the given
   372      * @return the <code>Currency</code> instance for the country of the given
   373      * locale, or {@code null}
   373      * locale, or {@code null}
   374      * @exception NullPointerException if <code>locale</code> or its country
   374      * @exception NullPointerException if <code>locale</code>
   375      * code is {@code null}
   375      * is {@code null}
   376      * @exception IllegalArgumentException if the country of the given {@code locale}
   376      * @exception IllegalArgumentException if the country of the given {@code locale}
   377      * is not a supported ISO 3166 country code.
   377      * is not a supported ISO 3166 country code.
   378      */
   378      */
   379     public static Currency getInstance(Locale locale) {
   379     public static Currency getInstance(Locale locale) {
   380         String country = locale.getCountry();
   380         String country = locale.getCountry();