OpenJDK / jdk / hs
changeset 45121:5bf18ccab99e
8180128: small errors in String javadoc
Reviewed-by: lancea
author | smarks |
---|---|
date | Wed, 10 May 2017 15:59:15 -0700 |
parents | ba4c8ba79c19 |
children | 8cfb711b103b |
files | jdk/src/java.base/share/classes/java/lang/String.java |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 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: *