changeset 17122:a3af889e7f65

8180128: small errors in String javadoc Reviewed-by: lancea
author smarks
date Wed, 10 May 2017 15:59:15 -0700
parents f12c83ece7ab
children f895e36ce0e9
files src/java.base/share/classes/java/lang/String.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/lang/String.java	Wed May 10 18:27:48 2017 +0200
+++ b/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:
      *