mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
21 lines
535 B
HTML
21 lines
535 B
HTML
<html>
|
|
<body>
|
|
Reports modifications of variables with a simple assignment (such as <code>y = y + x</code>) that can be replaced with an operator assignment.
|
|
<p>The quick-fix replaces the assignment with an assignment operator.</p>
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
fun foo() {
|
|
val list = mutableListOf(1, 2, 3)
|
|
list = list + 4
|
|
}
|
|
</code></pre>
|
|
<p>After the quick-fix is applied:</p>
|
|
<pre><code>
|
|
fun foo() {
|
|
val list = mutableListOf(1, 2, 3)
|
|
list += 4
|
|
}
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
</body>
|
|
</html> |