Files
openide/java/java-impl/resources/inspectionDescriptions/ArrayCreationWithoutNewKeyword.html
2025-02-05 04:43:28 +00:00

14 lines
276 B
HTML

<html>
<body>
Reports array initializers without <code>new</code> array expressions and suggests adding them.
<p>Example:</p>
<pre><code>
int[] a = {42}
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code>
int[] a = new int[]{42}
</code></pre>
</body>
</html>