Change description of boolean argument/augmented assignment inspections
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<html>
|
<html>
|
||||||
<body>
|
<body>
|
||||||
This inspection reports boolean literal arguments should be named.
|
This inspection reports boolean literal arguments that could be named to remove ambiguity.
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
<html>
|
<html>
|
||||||
<body>
|
<body>
|
||||||
This inspection reports non-mutable <b>Collection</b> augmented assignment creates a new <b>Collection</b> under the hood.
|
This inspection reports augmented assignment on read-only <b>Collection</b> that creates a new <b>Collection</b> under the hood.
|
||||||
Example:
|
Example:
|
||||||
<br /><br />
|
<br /><br />
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
<b>var</b> list = listOf(1, 2, 3)
|
<b>var</b> list = listOf(1, 2, 3)
|
||||||
list <b>+=</b> 4 // A new list is created
|
list <b>+=</b> 4 // A new list is created, better use mutableListOf instead
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user