diff --git a/resources-en/src/inspectionDescriptions/Java8CollectionRemoveIf.html b/resources-en/src/inspectionDescriptions/Java8CollectionRemoveIf.html index b802b0929db7..76e32a516257 100644 --- a/resources-en/src/inspectionDescriptions/Java8CollectionRemoveIf.html +++ b/resources-en/src/inspectionDescriptions/Java8CollectionRemoveIf.html @@ -1,6 +1,6 @@ -The inspection reports the loops which could be collapsed into single Collection.removeIf call in Java 8. +The inspection reports the loops which could be collapsed into single Collection.removeIf call.

The loops like this are reported:

@@ -11,6 +11,7 @@ The inspection reports the loops which could be collapsed into single Coll
     }
   }
 
+

This conversion is available since Java 8 only.

New in 2016.3 \ No newline at end of file diff --git a/resources-en/src/inspectionDescriptions/Java8CollectionsApi.html b/resources-en/src/inspectionDescriptions/Java8CollectionsApi.html index ee30be059d44..9f5e0f34fee1 100644 --- a/resources-en/src/inspectionDescriptions/Java8CollectionsApi.html +++ b/resources-en/src/inspectionDescriptions/Java8CollectionsApi.html @@ -1,11 +1,13 @@ -Inspection detects usages of java's Map when they can be replaced with methods putIfAbsent. For example: -
+Inspection detects usages of java's Map when they can be replaced with methods putIfAbsent.
+
+

For example:

+
   if (!map.containsKey(aKey)) {
     map.put(aKey, aValue);
   }
 
-
+

This conversion is available since Java 8 only.

\ No newline at end of file diff --git a/resources-en/src/inspectionDescriptions/Java8ListSort.html b/resources-en/src/inspectionDescriptions/Java8ListSort.html index e1918e6318b2..525188fadeab 100644 --- a/resources-en/src/inspectionDescriptions/Java8ListSort.html +++ b/resources-en/src/inspectionDescriptions/Java8ListSort.html @@ -2,8 +2,7 @@ Inspection detects calls to Collections.sort(list, comparator) which could be replaced with list.sort(comparator). -

+

This conversion is available since Java 8 only.

New in 2016.3 -

\ No newline at end of file diff --git a/resources-en/src/inspectionDescriptions/Java8ReplaceMapGet.html b/resources-en/src/inspectionDescriptions/Java8ReplaceMapGet.html index 49c3564c8c9f..c4e7d7ad7509 100644 --- a/resources-en/src/inspectionDescriptions/Java8ReplaceMapGet.html +++ b/resources-en/src/inspectionDescriptions/Java8ReplaceMapGet.html @@ -1,7 +1,6 @@ -Inspection detects calls to Map.get which could be replaced with getOrDefault or computeIfAbsent in -Java 8. +Inspection detects calls to Map.get which could be replaced with getOrDefault or computeIfAbsent.
+

This conversion is available since Java 8 only.

New in 2016.3 \ No newline at end of file diff --git a/resources/src/META-INF/IdeaPlugin.xml b/resources/src/META-INF/IdeaPlugin.xml index f56ff064f0ee..7cc48c65c979 100644 --- a/resources/src/META-INF/IdeaPlugin.xml +++ b/resources/src/META-INF/IdeaPlugin.xml @@ -816,22 +816,22 @@ groupBundle="messages.InspectionsBundle" groupKey="group.names.language.level.specific.issues.and.migration.aids" enabledByDefault="true" level="WARNING" implementationClass="com.intellij.codeInspection.java18api.Java8CollectionsApiInspection" - displayName="Map.putIfAbsent() can be used in Java 8"/> + displayName="Map.putIfAbsent() can be used"/> + displayName="Collections.sort() can be replaced with List.sort()"/> + displayName="Loop can be replaced with Collection.removeIf()"/> + displayName="Simplifiable conditional usage of Map.get()"/>