mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8218228: The constructor StringBuffer(CharSequence) violates spec for negatively sized argument
Reviewed-by: rriggs, darcy
This commit is contained in:
parent
2324f24c5d
commit
0052dff370
3 changed files with 38 additions and 10 deletions
|
@ -157,10 +157,6 @@ import jdk.internal.HotSpotIntrinsicCandidate;
|
|||
* as the specified {@code CharSequence}. The initial capacity of
|
||||
* the string buffer is {@code 16} plus the length of the
|
||||
* {@code CharSequence} argument.
|
||||
* <p>
|
||||
* If the length of the specified {@code CharSequence} is
|
||||
* less than or equal to zero, then an empty buffer of capacity
|
||||
* {@code 16} is returned.
|
||||
*
|
||||
* @param seq the sequence to copy.
|
||||
* @since 1.5
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue