8180128: small errors in String javadoc
authorsmarks
Wed, 10 May 2017 15:59:15 -0700
changeset 45121 5bf18ccab99e
parent 45120 ba4c8ba79c19
child 45122 8cfb711b103b
8180128: small errors in String javadoc Reviewed-by: lancea
jdk/src/java.base/share/classes/java/lang/String.java
--- a/jdk/src/java.base/share/classes/java/lang/String.java	Wed May 10 18:27:48 2017 +0200
+++ b/jdk/src/java.base/share/classes/java/lang/String.java	Wed May 10 15:59:15 2017 -0700
@@ -335,7 +335,7 @@
      * subarray.
      *
      * <p> Each {@code byte} in the subarray is converted to a {@code char} as
-     * specified in the method above.
+     * specified in the {@link #String(byte[],int) String(byte[],int)} constructor.
      *
      * @deprecated This method does not properly convert bytes into characters.
      * As of JDK&nbsp;1.1, the preferred way to do this is via the
@@ -390,7 +390,7 @@
 
     /**
      * Allocates a new {@code String} containing characters constructed from
-     * an array of 8-bit integer values. Each character <i>c</i>in the
+     * an array of 8-bit integer values. Each character <i>c</i> in the
      * resulting string is constructed from the corresponding component
      * <i>b</i> in the byte array such that:
      *