mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 08:51:02 +07:00
18 lines
602 B
HTML
18 lines
602 B
HTML
<html>
|
|
<body>
|
|
Reports attempts to instantiate a new <code>StringBuffer</code> or
|
|
<code>StringBuilder</code> object without specifying its initial capacity.
|
|
<p>
|
|
If no initial capacity is specified, a default capacity is used, which will rarely be optimal.
|
|
Failing to specify the initial capacity for <code>StringBuffer</code> may result
|
|
in performance issues if space needs to be reallocated and memory copied
|
|
when the initial capacity is exceeded.
|
|
</p>
|
|
<p>Example:</p>
|
|
<pre><code>
|
|
// Capacity is not specified
|
|
var sb = new StringBuilder();
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
</body>
|
|
</html> |