equal
deleted
inserted
replaced
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 /** |