< prev index next >

src/java.base/share/classes/java/util/Locale.java

Print this page

        

@@ -717,11 +717,11 @@
      * is available in the cache, then that instance is
      * returned. Otherwise, a new <code>Locale</code> instance is
      * created and cached.
      *
      * @param language lowercase 2 to 8 language code.
-     * @param country uppercase two-letter ISO-3166 code and numric-3 UN M.49 area code.
+     * @param country uppercase two-letter ISO-3166 code and numeric-3 UN M.49 area code.
      * @param variant vendor and browser specific code. See class description.
      * @return the <code>Locale</code> instance requested
      * @exception NullPointerException if any argument is null.
      */
     static Locale getInstance(String language, String country, String variant) {

@@ -1234,11 +1234,11 @@
     }
 
     /**
      * Package private method returning the Locale's LocaleExtensions,
      * used by ResourceBundle.
-     * @return locale exnteions of this Locale,
+     * @return locale extensions of this Locale,
      *         or {@code null} if no extensions are defined
      */
      LocaleExtensions getLocaleExtensions() {
          return localeExtensions;
      }

@@ -2607,11 +2607,11 @@
          * Removes a unicode locale attribute, if present, otherwise has no
          * effect.  The attribute must not be null and must be <a
          * href="./Locale.html#def_locale_extension">well-formed</a> or an exception
          * is thrown.
          *
-         * <p>Attribute comparision for removal is case-insensitive.
+         * <p>Attribute comparison for removal is case-insensitive.
          *
          * @param attribute the attribute
          * @return This builder.
          * @throws NullPointerException if <code>attribute</code> is null
          * @throws IllformedLocaleException if <code>attribute</code> is ill-formed
< prev index next >