mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
22 lines
589 B
HTML
22 lines
589 B
HTML
<html>
|
|
<body>
|
|
Reports arrays used in <code>String</code> concatenations or passed as parameters to <code>java.io.PrintStream</code>
|
|
methods, such as <code>System.out.println()</code>.
|
|
<p>
|
|
Usually, the content of the array is meant to be used and not the array object itself.
|
|
</p>
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
void print(Object[] objects) {
|
|
System.out.println(objects);
|
|
}
|
|
</code></pre>
|
|
<p>After the quick-fix is applied:</p>
|
|
<pre><code>
|
|
void print(Object[] objects) {
|
|
System.out.println(Arrays.toString(objects));
|
|
}
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
</body>
|
|
</html> |