diff --git a/resources-en/src/inspectionDescriptions/AnonymousHasLambdaAlternative.html b/resources-en/src/inspectionDescriptions/AnonymousHasLambdaAlternative.html index cee9457eeef6..9c591f6ce390 100644 --- a/resources-en/src/inspectionDescriptions/AnonymousHasLambdaAlternative.html +++ b/resources-en/src/inspectionDescriptions/AnonymousHasLambdaAlternative.html @@ -1,12 +1,12 @@ Reports anonymous classes which could be transformed to constructor or factory method call accepting lambda expression. -

The following classes are reported by this inspection:

-New in 2016.3 + +

New in 2016.3 \ No newline at end of file diff --git a/resources-en/src/inspectionDescriptions/ComparatorCombinators.html b/resources-en/src/inspectionDescriptions/ComparatorCombinators.html index 31d8fc54b891..8c5d58061971 100644 --- a/resources-en/src/inspectionDescriptions/ComparatorCombinators.html +++ b/resources-en/src/inspectionDescriptions/ComparatorCombinators.html @@ -2,9 +2,9 @@ Inspection looks for Comparators defined as lambda expressions which could be expressed using methods like Comparator.comparing(). -

Some comparators like (person1, person2) -> person1.getName().compareTo(person2.getName()) could be simplified like this: Comparator.comparing(Person::getName).

-New in 2016.3 + +

New in 2016.3 \ No newline at end of file diff --git a/resources-en/src/inspectionDescriptions/ExcessiveLambdaUsage.html b/resources-en/src/inspectionDescriptions/ExcessiveLambdaUsage.html index 8185220e6b88..7fb2553f5e6a 100644 --- a/resources-en/src/inspectionDescriptions/ExcessiveLambdaUsage.html +++ b/resources-en/src/inspectionDescriptions/ExcessiveLambdaUsage.html @@ -2,10 +2,10 @@ This inspection warns if trivial lambda expression is used where there's an alternative method which behaves the same way but accepts concrete value instead of lambda. -

For example, Optional.orElseGet(() -> null) can be replaced with Optional.orElse(null).

-New in 2017.1 + +

New in 2017.1

\ No newline at end of file diff --git a/resources-en/src/inspectionDescriptions/InvalidComparatorMethodReference.html b/resources-en/src/inspectionDescriptions/InvalidComparatorMethodReference.html index e7f4c905bb04..75cb5857d08d 100644 --- a/resources-en/src/inspectionDescriptions/InvalidComparatorMethodReference.html +++ b/resources-en/src/inspectionDescriptions/InvalidComparatorMethodReference.html @@ -1,11 +1,11 @@ This inspection reports method references mapped to Comparator interface which don't fulfill its contract. -

Some method references like Integer::max can be mapped to Comparator interface. However using them as Comparator is useless and result might be unpredictable.

-New in 2016.3 + +

New in 2016.3

\ No newline at end of file diff --git a/resources-en/src/inspectionDescriptions/Java8ArraySetAll.html b/resources-en/src/inspectionDescriptions/Java8ArraySetAll.html index 072e34ce649b..719222fe3bdc 100644 --- a/resources-en/src/inspectionDescriptions/Java8ArraySetAll.html +++ b/resources-en/src/inspectionDescriptions/Java8ArraySetAll.html @@ -1,14 +1,14 @@ This inspection looks for loops which could be replaced with Arrays.setAll() call. -

The loops like this are reported:

   for (int i=0; i<array.length; i++) {
      array[i] = calc(i);
   }
 
-

This inspection is available since Java 8 only.

-New in 2017.1 + +

This inspection only reports if the project or module is configured to use a language level of 8 or higher.

+

New in 2017.1 \ No newline at end of file diff --git a/resources-en/src/inspectionDescriptions/Java8CollectionRemoveIf.html b/resources-en/src/inspectionDescriptions/Java8CollectionRemoveIf.html index 94a8b8f5c1f0..6667a5887c49 100644 --- a/resources-en/src/inspectionDescriptions/Java8CollectionRemoveIf.html +++ b/resources-en/src/inspectionDescriptions/Java8CollectionRemoveIf.html @@ -1,7 +1,6 @@ The inspection reports the loops which could be collapsed into single Collection.removeIf call. -

The loops like this are reported:

   for (Iterator<String> it = collection.iterator(); it.hasNext(); ) {
@@ -11,7 +10,8 @@ The inspection reports the loops which could be collapsed into single Coll
     }
   }
 
-

This inspection is available since Java 8 only.

+ +

This inspection only reports if the project or module is configured to use a language level of 8 or higher.

New in 2016.3 \ No newline at end of file diff --git a/resources-en/src/inspectionDescriptions/Java8ListSort.html b/resources-en/src/inspectionDescriptions/Java8ListSort.html index 272cf382df34..43b086c89fee 100644 --- a/resources-en/src/inspectionDescriptions/Java8ListSort.html +++ b/resources-en/src/inspectionDescriptions/Java8ListSort.html @@ -2,7 +2,7 @@ Inspection detects calls to Collections.sort(list, comparator) which could be replaced with list.sort(comparator). -

This inspection is available since Java 8 only.

-New in 2016.3 +

This inspection only reports if the project or module is configured to use a language level of 8 or higher.

+

New in 2016.3 \ No newline at end of file diff --git a/resources-en/src/inspectionDescriptions/Java8MapApi.html b/resources-en/src/inspectionDescriptions/Java8MapApi.html index 736320ed124b..4df75ae89815 100644 --- a/resources-en/src/inspectionDescriptions/Java8MapApi.html +++ b/resources-en/src/inspectionDescriptions/Java8MapApi.html @@ -2,7 +2,6 @@ Inspection detects calls to Map.get which could be replaced with getOrDefault, computeIfAbsent or putIfAbsent. -

-

This inspection is available since Java 8 only.

-New in 2016.3 + +

This inspection only reports if the project or module is configured to use a language level of 8 or higher.

+

New in 2016.3 \ No newline at end of file diff --git a/resources-en/src/inspectionDescriptions/Java8MapForEach.html b/resources-en/src/inspectionDescriptions/Java8MapForEach.html index 516dc59a3d7c..0c79ad820c26 100644 --- a/resources-en/src/inspectionDescriptions/Java8MapForEach.html +++ b/resources-en/src/inspectionDescriptions/Java8MapForEach.html @@ -2,12 +2,12 @@ This inspection suggests to replace for(Entry<?,?> entry : map.entrySet()) {...} or map.entrySet().forEach(entry -> ...) with map.forEach((key, value) -> ...). -

When checkbox is checked, only entrySet().forEach() cases will be reported. However the quick-fix action will be available for for-loops as well.

-

This inspection is available since Java 8 only.

-New in 2017.1 + +

This inspection only reports if the project or module is configured to use a language level of 8 or higher.

+

New in 2017.1 \ No newline at end of file diff --git a/resources-en/src/inspectionDescriptions/LambdaCanBeMethodCall.html b/resources-en/src/inspectionDescriptions/LambdaCanBeMethodCall.html index 7752be073a43..f98c243abdfa 100644 --- a/resources-en/src/inspectionDescriptions/LambdaCanBeMethodCall.html +++ b/resources-en/src/inspectionDescriptions/LambdaCanBeMethodCall.html @@ -1,9 +1,9 @@ Reports lambda expressions which could be replaced with JDK method call. -

For example, the expression x -> x of type Function<T, T> -could be replaced with Function.identity() call.

-New in 2017.1 + could be replaced with Function.identity() call.

+ +

New in 2017.1 \ No newline at end of file diff --git a/resources-en/src/inspectionDescriptions/RedundantStreamOptionalCall.html b/resources-en/src/inspectionDescriptions/RedundantStreamOptionalCall.html index b8f9ae47ce76..01683501583c 100644 --- a/resources-en/src/inspectionDescriptions/RedundantStreamOptionalCall.html +++ b/resources-en/src/inspectionDescriptions/RedundantStreamOptionalCall.html @@ -2,12 +2,12 @@ This inspection warns about useless Stream or Optional calls like map(x -> x) or filter(x -> true), useless sorted or distinct. -

Note that a mapping operation in code like streamOfIntegers.map(Integer::valueOf) works as requireNonNull check: if stream contains a null, it will throw NullPointerException, thus it's not absolutely useless. Uncheck the "Report useless boxing in Stream.map" checkbox if you don't want such cases to be reported.

-

This inspection is available since Java 8 only.

-New in 2017.1 + +

This inspection only reports if the project or module is configured to use a language level of 8 or higher.

+

New in 2017.1 \ No newline at end of file diff --git a/resources-en/src/inspectionDescriptions/SimplifyCollector.html b/resources-en/src/inspectionDescriptions/SimplifyCollector.html index 6f482738e5af..2c3679da1e89 100644 --- a/resources-en/src/inspectionDescriptions/SimplifyCollector.html +++ b/resources-en/src/inspectionDescriptions/SimplifyCollector.html @@ -3,7 +3,7 @@ This inspection detects collectors which could be simplified. In particular some cascaded groupingBy collectors could be expressed with simpler toMap collector which also will likely be more performant. -

This inspection is available since Java 8 only.

-New in 2017.1 +

This inspection only reports if the project or module is configured to use a language level of 8 or higher.

+

New in 2017.1 \ No newline at end of file diff --git a/resources-en/src/inspectionDescriptions/StreamToLoop.html b/resources-en/src/inspectionDescriptions/StreamToLoop.html index 831c2dbc8a45..eca70483a287 100644 --- a/resources-en/src/inspectionDescriptions/StreamToLoop.html +++ b/resources-en/src/inspectionDescriptions/StreamToLoop.html @@ -1,12 +1,12 @@ This inspection converts Stream API chain into classical loop. -

Note that sometimes this inspection might cause slight semantic changes. Especially care should be taken when it comes to short-circuiting, as it's not specified how many elements will be actually read when the stream short-circuits.

-New in 2017.1 + +

New in 2017.1 \ No newline at end of file