jdk/src/java.base/share/classes/java/util/Locale.java
changeset 45377 13a0c766d059
parent 45124 144479e89cdb
child 45838 c6223c3b4594
equal deleted inserted replaced
45376:86022ba55981 45377:13a0c766d059
  2700          * @throws NullPointerException if <code>attribute</code> is null
  2700          * @throws NullPointerException if <code>attribute</code> is null
  2701          * @throws IllformedLocaleException if <code>attribute</code> is ill-formed
  2701          * @throws IllformedLocaleException if <code>attribute</code> is ill-formed
  2702          * @see #setExtension(char, String)
  2702          * @see #setExtension(char, String)
  2703          */
  2703          */
  2704         public Builder removeUnicodeLocaleAttribute(String attribute) {
  2704         public Builder removeUnicodeLocaleAttribute(String attribute) {
       
  2705             Objects.requireNonNull(attribute);
  2705             try {
  2706             try {
  2706                 localeBuilder.removeUnicodeLocaleAttribute(attribute);
  2707                 localeBuilder.removeUnicodeLocaleAttribute(attribute);
  2707             } catch (LocaleSyntaxException e) {
  2708             } catch (LocaleSyntaxException e) {
  2708                 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex());
  2709                 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex());
  2709             }
  2710             }