jdk/src/share/classes/java/util/Locale.java
changeset 6655 b4130d85e450
parent 6501 684810d882b3
child 6840 51af1a50aec6
equal deleted inserted replaced
6654:0fd919eec405 6655:b4130d85e450
   567      * @param variant Any arbitrary value used to indicate a variation of a <code>Locale</code>.
   567      * @param variant Any arbitrary value used to indicate a variation of a <code>Locale</code>.
   568      * See the <code>Locale</code> class description for the details.
   568      * See the <code>Locale</code> class description for the details.
   569      * @exception NullPointerException thrown if any argument is null.
   569      * @exception NullPointerException thrown if any argument is null.
   570      */
   570      */
   571     public Locale(String language, String country, String variant) {
   571     public Locale(String language, String country, String variant) {
       
   572         if (language== null || country == null || variant == null) {
       
   573             throw new NullPointerException();
       
   574         }
   572         _baseLocale = BaseLocale.getInstance(convertOldISOCodes(language), "", country, variant);
   575         _baseLocale = BaseLocale.getInstance(convertOldISOCodes(language), "", country, variant);
   573         _extensions = getCompatibilityExtensions(language, "", country, variant);
   576         _extensions = getCompatibilityExtensions(language, "", country, variant);
   574     }
   577     }
   575 
   578 
   576     /**
   579     /**