--- old/src/share/classes/java/lang/Long.java 2012-01-23 09:34:32.000000000 -0800 +++ new/src/share/classes/java/lang/Long.java 2012-01-23 09:34:32.000000000 -0800 @@ -81,13 +81,13 @@ * *

If the first argument is negative, the first element of the * result is the ASCII minus sign {@code '-'} - * ('\u002d'). If the first argument is not + * ({@code '\u005Cu002d'}). If the first argument is not * negative, no sign character appears in the result. * *

The remaining characters of the result represent the magnitude * of the first argument. If the magnitude is zero, it is * represented by a single zero character {@code '0'} - * ('\u0030'); otherwise, the first character of + * ({@code '\u005Cu0030'}); otherwise, the first character of * the representation of the magnitude will not be the zero * character. The following ASCII characters are used as digits: * @@ -95,9 +95,9 @@ * {@code 0123456789abcdefghijklmnopqrstuvwxyz} * * - * These are '\u0030' through - * '\u0039' and '\u0061' through - * '\u007a'. If {@code radix} is + * These are {@code '\u005Cu0030'} through + * {@code '\u005Cu0039'} and {@code '\u005Cu0061'} through + * {@code '\u005Cu007a'}. If {@code radix} is * N, then the first N of these characters * are used as radix-N digits in the order shown. Thus, * the digits for hexadecimal (radix 16) are @@ -154,7 +154,7 @@ * value, no leading sign character is printed. * *

If the magnitude is zero, it is represented by a single zero - * character {@code '0'} ('\u0030'); otherwise, + * character {@code '0'} ({@code '\u005Cu0030'}); otherwise, * the first character of the representation of the magnitude will * not be the zero character. * @@ -239,7 +239,7 @@ * 16)}. * *

If the unsigned magnitude is zero, it is represented by a - * single zero character {@code '0'} ('\u0030'); + * single zero character {@code '0'} ({@code '\u005Cu0030'}); * otherwise, the first character of the representation of the * unsigned magnitude will not be the zero character. The * following characters are used as hexadecimal digits: @@ -248,9 +248,9 @@ * {@code 0123456789abcdef} * * - * These are the characters '\u0030' through - * '\u0039' and '\u0061' through - * '\u0066'. If uppercase letters are desired, + * These are the characters {@code '\u005Cu0030'} through + * {@code '\u005Cu0039'} and {@code '\u005Cu0061'} through + * {@code '\u005Cu0066'}. If uppercase letters are desired, * the {@link java.lang.String#toUpperCase()} method may be called * on the result: * @@ -286,7 +286,7 @@ * 8)}. * *

If the unsigned magnitude is zero, it is represented by a - * single zero character {@code '0'} ('\u0030'); + * single zero character {@code '0'} ({@code '\u005Cu0030'}); * otherwise, the first character of the representation of the * unsigned magnitude will not be the zero character. The * following characters are used as octal digits: @@ -295,8 +295,8 @@ * {@code 01234567} * * - * These are the characters '\u0030' through - * '\u0037'. + * These are the characters {@code '\u005Cu0030'} through + * {@code '\u005Cu0037'}. * * @param i a {@code long} to be converted to a string. * @return the string representation of the unsigned {@code long} @@ -325,11 +325,11 @@ * 2)}. * *

If the unsigned magnitude is zero, it is represented by a - * single zero character {@code '0'} ('\u0030'); + * single zero character {@code '0'} ({@code '\u005Cu0030'}); * otherwise, the first character of the representation of the * unsigned magnitude will not be the zero character. The - * characters {@code '0'} ('\u0030') and {@code - * '1'} ('\u0031') are used as binary digits. + * characters {@code '0'} ({@code '\u005Cu0030'}) and {@code + * '1'} ({@code '\u005Cu0031'}) are used as binary digits. * * @param i a {@code long} to be converted to a string. * @return the string representation of the unsigned {@code long} @@ -467,14 +467,14 @@ * string must all be digits of the specified radix (as determined * by whether {@link java.lang.Character#digit(char, int)} returns * a nonnegative value), except that the first character may be an - * ASCII minus sign {@code '-'} ('\u002D') to + * ASCII minus sign {@code '-'} ({@code '\u005Cu002D'}) to * indicate a negative value or an ASCII plus sign {@code '+'} - * ('\u002B') to indicate a positive value. The + * ({@code '\u005Cu002B'}) to indicate a positive value. The * resulting {@code long} value is returned. * *

Note that neither the character {@code L} - * ('\u004C') nor {@code l} - * ('\u006C') is permitted to appear at the end + * ({@code '\u005Cu004C'}) nor {@code l} + * ({@code '\u005Cu006C'}) is permitted to appear at the end * of the string as a type indicator, as would be permitted in * Java programming language source code - except that either * {@code L} or {@code l} may appear as a digit for a @@ -493,8 +493,8 @@ * *

  • Any character of the string is not a digit of the specified * radix, except that the first character may be a minus sign - * {@code '-'} ('\u002d') or plus sign {@code - * '+'} ('\u002B') provided that the string is + * {@code '-'} ({@code '\u005Cu002d'}) or plus sign {@code + * '+'} ({@code '\u005Cu002B'}) provided that the string is * longer than length 1. * *
  • The value represented by the string is not a value of type @@ -584,16 +584,16 @@ * Parses the string argument as a signed decimal {@code long}. * The characters in the string must all be decimal digits, except * that the first character may be an ASCII minus sign {@code '-'} - * (\u002D') to indicate a negative value or an - * ASCII plus sign {@code '+'} ('\u002B') to + * ({@code \u005Cu002D'}) to indicate a negative value or an + * ASCII plus sign {@code '+'} ({@code '\u005Cu002B'}) to * indicate a positive value. The resulting {@code long} value is * returned, exactly as if the argument and the radix {@code 10} * were given as arguments to the {@link * #parseLong(java.lang.String, int)} method. * *

    Note that neither the character {@code L} - * ('\u004C') nor {@code l} - * ('\u006C') is permitted to appear at the end + * ({@code '\u005Cu004C'}) nor {@code l} + * ({@code '\u005Cu006C'}) is permitted to appear at the end * of the string as a type indicator, as would be permitted in * Java programming language source code. * @@ -618,7 +618,7 @@ * specified radix (as determined by whether {@link * java.lang.Character#digit(char, int)} returns a nonnegative * value), except that the first character may be an ASCII plus - * sign {@code '+'} ('\u002B'). The resulting + * sign {@code '+'} ({@code '\u005Cu002B'}). The resulting * integer value is returned. * *

    An exception of type {@code NumberFormatException} is @@ -633,7 +633,7 @@ * *

  • Any character of the string is not a digit of the specified * radix, except that the first character may be a plus sign - * {@code '+'} ('\u002B') provided that the + * {@code '+'} ({@code '\u005Cu002B'}) provided that the * string is longer than length 1. * *
  • The value represented by the string is larger than the @@ -707,7 +707,7 @@ * Parses the string argument as an unsigned decimal {@code long}. The * characters in the string must all be decimal digits, except * that the first character may be an an ASCII plus sign {@code - * '+'} ('\u002B'). The resulting integer value + * '+'} ({@code '\u005Cu002B'}). The resulting integer value * is returned, exactly as if the argument and the radix 10 were * given as arguments to the {@link * #parseUnsignedLong(java.lang.String, int)} method. @@ -1148,8 +1148,8 @@ * * *

    Note that, in every case, neither {@code L} - * ('\u004C') nor {@code l} - * ('\u006C') is permitted to appear at the end + * ({@code '\u005Cu004C'}) nor {@code l} + * ({@code '\u005Cu006C'}) is permitted to appear at the end * of the property value as a type indicator, as would be * permitted in Java programming language source code. *