mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-25 15:20:11 +00:00
8233751: StringBuilder / StringBuffer capacity() doc is misleading
Reviewed-by: bchristi
This commit is contained in:
parent
e72f6028fb
commit
0cb75321ef
@ -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…
x
Reference in New Issue
Block a user