changeset 2353:ab0673a2e681

6937842: Unreadable \uXXXX in javadoc Summary: Replace \uXXXX by \u005CXXXX, or simply delete Reviewed-by: sherman
author martin
date Sun, 09 May 2010 16:37:06 -0700
parents df4d3e3e465a
children c533a177ef64 05c9ff89bcdc
files src/share/classes/java/lang/String.java src/share/classes/java/util/zip/Deflater.java
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/lang/String.java	Sun May 09 16:03:13 2010 -0700
+++ b/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/src/share/classes/java/util/zip/Deflater.java	Sun May 09 16:03:13 2010 -0700
+++ b/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