8025547: Locale.toString() documentation error
authorrgoel
Wed, 09 Dec 2015 14:20:51 +0530
changeset 34532 1b2b17500dca
parent 34531 7f00d9e3e545
child 34533 dab701881eef
8025547: Locale.toString() documentation error Summary: Updated API doc of Locale.toString method. Reviewed-by: okutsu
jdk/src/java.base/share/classes/java/util/Locale.java
--- a/jdk/src/java.base/share/classes/java/util/Locale.java	Wed Dec 09 17:34:09 2015 +0000
+++ b/jdk/src/java.base/share/classes/java/util/Locale.java	Wed Dec 09 14:20:51 2015 +0530
@@ -1248,7 +1248,7 @@
      * object, consisting of language, country, variant, script,
      * and extensions as below:
      * <blockquote>
-     * language + "_" + country + "_" + (variant + "_#" | "#") + script + "-" + extensions
+     * language + "_" + country + "_" + (variant + "_#" | "#") + script + "_" + extensions
      * </blockquote>
      *
      * Language is always lower case, country is always upper case, script is always title
@@ -1278,7 +1278,7 @@
      * <li>{@code en_US_WIN}</li>
      * <li>{@code de__POSIX}</li>
      * <li>{@code zh_CN_#Hans}</li>
-     * <li>{@code zh_TW_#Hant-x-java}</li>
+     * <li>{@code zh_TW_#Hant_x-java}</li>
      * <li>{@code th_TH_TH_#u-nu-thai}</li></ul>
      *
      * @return A string representation of the Locale, for debugging.