blob: 8cae219ce27681831cad27ed2d362863af601f31 [file]
<html>
<body>
Reports loops which could be replaced with <code>Arrays.setAll()</code> or <code>Arrays.fill()</code> calls.
This inspection suggests replacing loops with <code>Arrays.setAll()</code> if the language level of the project or module is 8 or higher.
Replacing loops with <code>Arrays.fill()</code> is possible with any language level.
<p>For example:</p>
<pre>
for (int i=0; i&lt;array.length; i++) {
array[i] = calc(i);
}
</pre>
<p>Will be replaced with:</p>
<pre>
Arrays.setAll(array, this::calc);
</pre>
<!-- tooltip end -->
<p><small>New in 2017.1</small></p>
</body>
</html>