Files
openide/java/java-impl/resources/inspectionDescriptions/ImplicitArrayToString.html
Leonid Shalupov 40795fe787 IJI-2422: community/java: move resources under resources root
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
2025-02-05 04:43:28 +00:00

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>