mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
15 lines
509 B
HTML
15 lines
509 B
HTML
<html>
|
|
<body>
|
|
Reports calls to <code>StringBuffer</code> and <code>StringBuilder</code> constructors with <code>char</code> as the argument.
|
|
In this case, <code>char</code> is silently cast to an integer and interpreted as the initial capacity of the buffer.
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
new StringBuilder('(').append("1").append(')');
|
|
</code></pre>
|
|
<p>After the quick-fix is applied:</p>
|
|
<pre><code>
|
|
new StringBuilder("(").append("1").append(')');
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
</body>
|
|
</html> |