From b17ee60c6fdaff5dbba61877ba53eeb513821a63 Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Wed, 5 Dec 2018 09:56:42 +0300 Subject: [PATCH] Change description of boolean argument/augmented assignment inspections --- .../inspectionDescriptions/BooleanLiteralArgument.html | 2 +- .../SuspiciousCollectionReassignment.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/idea/resources/inspectionDescriptions/BooleanLiteralArgument.html b/idea/resources/inspectionDescriptions/BooleanLiteralArgument.html index 67fe55548ce..86df6e91a13 100644 --- a/idea/resources/inspectionDescriptions/BooleanLiteralArgument.html +++ b/idea/resources/inspectionDescriptions/BooleanLiteralArgument.html @@ -1,5 +1,5 @@ -This inspection reports boolean literal arguments should be named. +This inspection reports boolean literal arguments that could be named to remove ambiguity. diff --git a/idea/resources/inspectionDescriptions/SuspiciousCollectionReassignment.html b/idea/resources/inspectionDescriptions/SuspiciousCollectionReassignment.html index 52fb972da5a..46550639f62 100644 --- a/idea/resources/inspectionDescriptions/SuspiciousCollectionReassignment.html +++ b/idea/resources/inspectionDescriptions/SuspiciousCollectionReassignment.html @@ -1,12 +1,12 @@ -This inspection reports non-mutable Collection augmented assignment creates a new Collection under the hood. +This inspection reports augmented assignment on read-only Collection that creates a new Collection under the hood. Example:

 var list = listOf(1, 2, 3)
-list += 4 // A new list is created
+list += 4 // A new list is created, better use mutableListOf instead