mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8233751: StringBuilder / StringBuffer capacity() doc is misleading
Reviewed-by: bchristi
This commit is contained in:
parent
e72f6028fb
commit
0cb75321ef
1 changed files with 3 additions and 3 deletions
|
@ -181,9 +181,9 @@ abstract class AbstractStringBuilder implements Appendable, CharSequence {
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns the current capacity. The capacity is the amount of storage
|
||||
* available for newly inserted characters, beyond which an allocation
|
||||
* will occur.
|
||||
* Returns the current capacity. The capacity is the number of characters
|
||||
* that can be stored (including already written characters), beyond which
|
||||
* an allocation will occur.
|
||||
*
|
||||
* @return the current capacity
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue