8180128: small errors in String javadoc
Reviewed-by: lancea
This commit is contained in:
parent
66f56c7086
commit
56a26d4865
@ -335,7 +335,7 @@ public final class String
|
||||
* 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 @@ public final class String
|
||||
|
||||
/**
|
||||
* 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:
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user