mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-14 18:05:27 +07:00
21 lines
417 B
HTML
21 lines
417 B
HTML
<html>
|
|
<body>
|
|
Reports calls to <code>java.util.List.set()</code> methods. Such calls could be replaced
|
|
by the shorter and clearer keyed access form.
|
|
<p><b>Example:</b></p>
|
|
<pre>
|
|
<code>
|
|
def list = ["foo"]
|
|
list.set(0, "bar") // list.set(0, "bar") could be replaced with list[0] = "bar"
|
|
</code>
|
|
</pre>
|
|
<p>After the quick-fix is applied:</p>
|
|
<pre>
|
|
<code>
|
|
def list = ["foo"]
|
|
list[0] = "bar"
|
|
</code>
|
|
</pre>
|
|
</body>
|
|
</html>
|