--- old/src/share/classes/java/lang/Byte.java 2009-07-09 12:29:49.000000000 -0700 +++ new/src/share/classes/java/lang/Byte.java 2009-07-09 12:29:49.000000000 -0700 @@ -90,8 +90,8 @@ * If a new {@code Byte} instance is not required, this method * should generally be used in preference to the constructor * {@link #Byte(byte)}, as this method is likely to yield - * significantly better space and time performance by caching - * frequently requested values. + * significantly better space and time performance since + * all byte values are cached. * * @param b a byte value. * @return a {@code Byte} instance representing {@code b}. --- old/src/share/classes/java/lang/Character.java 2009-07-09 12:29:50.000000000 -0700 +++ new/src/share/classes/java/lang/Character.java 2009-07-09 12:29:50.000000000 -0700 @@ -2571,6 +2571,10 @@ * significantly better space and time performance by caching * frequently requested values. * + * This method will always cache values in the range '\u0000' + * to '\u007f'", inclusive, and may cache other values outside + * of this range. + * * @param c a char value. * @return a Character instance representing c. * @since 1.5 --- old/src/share/classes/java/lang/Integer.java 2009-07-09 12:29:51.000000000 -0700 +++ new/src/share/classes/java/lang/Integer.java 2009-07-09 12:29:50.000000000 -0700 @@ -638,6 +638,9 @@ * to yield significantly better space and time performance by * caching frequently requested values. * + * This method will always cache values in the range -128 to 127, + * inclusive, and may cache other values outside of this range. + * * @param i an {@code int} value. * @return an {@code Integer} instance representing {@code i}. * @since 1.5 --- old/src/share/classes/java/lang/Long.java 2009-07-09 12:29:52.000000000 -0700 +++ new/src/share/classes/java/lang/Long.java 2009-07-09 12:29:51.000000000 -0700 @@ -560,6 +560,11 @@ * significantly better space and time performance by caching * frequently requested values. * + * Note that unlike the {@linkplain Integer#valueOf(int) + * corresponding method} in the {@code Integer} class, this method + * is not required to cache values within a particular + * range. + * * @param l a long value. * @return a {@code Long} instance representing {@code l}. * @since 1.5 --- old/src/share/classes/java/lang/Short.java 2009-07-09 12:29:52.000000000 -0700 +++ new/src/share/classes/java/lang/Short.java 2009-07-09 12:29:52.000000000 -0700 @@ -219,6 +219,9 @@ * significantly better space and time performance by caching * frequently requested values. * + * This method will always cache values in the range -128 to 127, + * inclusive, and may cache other values outside of this range. + * * @param s a short value. * @return a {@code Short} instance representing {@code s}. * @since 1.5