Change description of boolean argument/augmented assignment inspections
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This inspection reports boolean literal arguments should be named.
|
||||
This inspection reports boolean literal arguments that could be named to remove ambiguity.
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<html>
|
||||
<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:
|
||||
<br /><br />
|
||||
|
||||
<pre>
|
||||
<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>
|
||||
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user