6937842: Unreadable \uXXXX in javadoc
authormartin
Sun, 09 May 2010 16:37:06 -0700
changeset 5469 18ea05ea56b9
parent 5468 c9aa7dfb4f78
child 5470 1f3036cbf121
child 5599 a9bbe8282b0f
6937842: Unreadable \uXXXX in javadoc Summary: Replace \uXXXX by \u005CXXXX, or simply delete Reviewed-by: sherman
jdk/src/share/classes/java/lang/String.java
jdk/src/share/classes/java/util/zip/Deflater.java
--- a/jdk/src/share/classes/java/lang/String.java	Sun May 09 16:03:13 2010 -0700
+++ b/jdk/src/share/classes/java/lang/String.java	Sun May 09 16:37:06 2010 -0700
@@ -2551,8 +2551,8 @@
      * Examples are programming language identifiers, protocol keys, and HTML
      * tags.
      * For instance, <code>"TITLE".toLowerCase()</code> in a Turkish locale
-     * returns <code>"t\u0131tle"</code>, where '\u0131' is the LATIN SMALL
-     * LETTER DOTLESS I character.
+     * returns <code>"t\u005Cu0131tle"</code>, where '\u005Cu0131' is the
+     * LATIN SMALL LETTER DOTLESS I character.
      * To obtain correct results for locale insensitive strings, use
      * <code>toLowerCase(Locale.ENGLISH)</code>.
      * <p>
@@ -2714,8 +2714,8 @@
      * Examples are programming language identifiers, protocol keys, and HTML
      * tags.
      * For instance, <code>"title".toUpperCase()</code> in a Turkish locale
-     * returns <code>"T\u0130TLE"</code>, where '\u0130' is the LATIN CAPITAL
-     * LETTER I WITH DOT ABOVE character.
+     * returns <code>"T\u005Cu0130TLE"</code>, where '\u005Cu0130' is the
+     * LATIN CAPITAL LETTER I WITH DOT ABOVE character.
      * To obtain correct results for locale insensitive strings, use
      * <code>toUpperCase(Locale.ENGLISH)</code>.
      * <p>
--- a/jdk/src/share/classes/java/util/zip/Deflater.java	Sun May 09 16:03:13 2010 -0700
+++ b/jdk/src/share/classes/java/util/zip/Deflater.java	Sun May 09 16:37:06 2010 -0700
@@ -40,7 +40,7 @@
  * <blockquote><pre>
  * try {
  *     // Encode a String into bytes
- *     String inputString = "blahblahblah\u20AC\u20AC";
+ *     String inputString = "blahblahblah";
  *     byte[] input = inputString.getBytes("UTF-8");
  *
  *     // Compress the bytes