changeset 13284:84cf80e6e06d

8025547: Locale.toString() documentation error Summary: Updated API doc of Locale.toString method. Reviewed-by: okutsu
author rgoel
date Wed, 09 Dec 2015 14:20:51 +0530
parents c7fe870b2414
children 7f644a5d554a
files src/java.base/share/classes/java/util/Locale.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/util/Locale.java	Wed Dec 09 17:34:09 2015 +0000
+++ b/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.