Intention to replace add/addAll on a mutable collection with += (#1143)

This commit is contained in:
nd
2017-07-07 16:34:20 +02:00
committed by Dmitry Jemerov
parent fae8efdc7f
commit 58e5c497d0
16 changed files with 188 additions and 0 deletions
@@ -0,0 +1,4 @@
fun foo() {
val a = arrayListOf<Int>(1, 2, 3)
a <spot>+=</spot> 4
}
@@ -0,0 +1,4 @@
fun foo() {
val a = arrayListOf<Int>(1, 2, 3)
a<spot>.add</spot>(4)
}
@@ -0,0 +1,5 @@
<html>
<body>
This intention replaces <code>add()</code> and <code>addAll()</code> calls in mutable collection with <code>+=</code>
</body>
</html>