From b407d79559726adf5cdd8c46ed5e37745e6f3752 Mon Sep 17 00:00:00 2001 From: Bas Leijdekkers Date: Wed, 1 Mar 2017 11:54:10 +0100 Subject: [PATCH] more inspection description cleanup --- .../AnonymousHasLambdaAlternative.html | 2 +- .../src/inspectionDescriptions/ComparatorCombinators.html | 4 ++-- .../src/inspectionDescriptions/ExcessiveLambdaUsage.html | 4 ++-- .../InvalidComparatorMethodReference.html | 2 +- .../src/inspectionDescriptions/Java8ArraySetAll.html | 6 +++--- .../src/inspectionDescriptions/Java8CollectionRemoveIf.html | 6 +++--- resources-en/src/inspectionDescriptions/Java8ListSort.html | 4 ++-- resources-en/src/inspectionDescriptions/Java8MapApi.html | 6 +++--- .../src/inspectionDescriptions/Java8MapForEach.html | 4 ++-- .../src/inspectionDescriptions/LambdaCanBeMethodCall.html | 2 +- .../inspectionDescriptions/RedundantStreamOptionalCall.html | 4 ++-- .../src/inspectionDescriptions/SimplifyCollector.html | 4 ++-- resources-en/src/inspectionDescriptions/StreamToLoop.html | 6 +++--- 13 files changed, 27 insertions(+), 27 deletions(-) diff --git a/resources-en/src/inspectionDescriptions/AnonymousHasLambdaAlternative.html b/resources-en/src/inspectionDescriptions/AnonymousHasLambdaAlternative.html index 9c591f6ce390..976f31ad593f 100644 --- a/resources-en/src/inspectionDescriptions/AnonymousHasLambdaAlternative.html +++ b/resources-en/src/inspectionDescriptions/AnonymousHasLambdaAlternative.html @@ -7,6 +7,6 @@ Reports anonymous classes which could be transformed to constructor or factory m
  • Thread anonymous classes having run() method (could be replaced with new Thread(Runnable)
  • -

    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 8c5d58061971..57b47d08bcd8 100644 --- a/resources-en/src/inspectionDescriptions/ComparatorCombinators.html +++ b/resources-en/src/inspectionDescriptions/ComparatorCombinators.html @@ -1,10 +1,10 @@ -Inspection looks for Comparators defined as lambda expressions which could be expressed using +Reports 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 7fb2553f5e6a..8f83a2ec6a53 100644 --- a/resources-en/src/inspectionDescriptions/ExcessiveLambdaUsage.html +++ b/resources-en/src/inspectionDescriptions/ExcessiveLambdaUsage.html @@ -1,7 +1,7 @@ -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. +Reports if trivial lambda expression is used where there's an alternative method which behaves the same way, but +accepts a concrete value instead of a lambda.

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

    diff --git a/resources-en/src/inspectionDescriptions/InvalidComparatorMethodReference.html b/resources-en/src/inspectionDescriptions/InvalidComparatorMethodReference.html index 75cb5857d08d..3a1edb31bccf 100644 --- a/resources-en/src/inspectionDescriptions/InvalidComparatorMethodReference.html +++ b/resources-en/src/inspectionDescriptions/InvalidComparatorMethodReference.html @@ -1,6 +1,6 @@ -This inspection reports method references mapped to Comparator interface which don't fulfill its contract. +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. diff --git a/resources-en/src/inspectionDescriptions/Java8ArraySetAll.html b/resources-en/src/inspectionDescriptions/Java8ArraySetAll.html index 719222fe3bdc..98b2a07e5015 100644 --- a/resources-en/src/inspectionDescriptions/Java8ArraySetAll.html +++ b/resources-en/src/inspectionDescriptions/Java8ArraySetAll.html @@ -1,7 +1,7 @@ -This inspection looks for loops which could be replaced with Arrays.setAll() call. -

    The loops like this are reported:

    +Reports loops which could be replaced with Arrays.setAll() call. +

    For example:

       for (int i=0; i<array.length; i++) {
          array[i] = calc(i);
    @@ -9,6 +9,6 @@ This inspection looks for loops which could be replaced with Arrays.setAll
     

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

    -

    New in 2017.1 +

    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 6667a5887c49..e1f7f392b308 100644 --- a/resources-en/src/inspectionDescriptions/Java8CollectionRemoveIf.html +++ b/resources-en/src/inspectionDescriptions/Java8CollectionRemoveIf.html @@ -1,7 +1,7 @@ -The inspection reports the loops which could be collapsed into single Collection.removeIf call. -

    The loops like this are reported:

    +Reports loops which could be collapsed into single Collection.removeIf call. +

    For example:

       for (Iterator<String> it = collection.iterator(); it.hasNext(); ) {
         String aValue = it.next();
    @@ -12,6 +12,6 @@ The inspection reports the loops which could be collapsed into single Coll
     

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

    -New in 2016.3 +

    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 43b086c89fee..026b387dfecc 100644 --- a/resources-en/src/inspectionDescriptions/Java8ListSort.html +++ b/resources-en/src/inspectionDescriptions/Java8ListSort.html @@ -1,8 +1,8 @@ -Inspection detects calls to Collections.sort(list, comparator) which could be replaced with list.sort(comparator). +Reports calls to Collections.sort(list, comparator) which could be replaced with list.sort(comparator).

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

    -

    New in 2016.3 +

    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 2697a4557190..fccdc8d4cff3 100644 --- a/resources-en/src/inspectionDescriptions/Java8MapApi.html +++ b/resources-en/src/inspectionDescriptions/Java8MapApi.html @@ -1,7 +1,7 @@ -Inspection detects calls to Map.get which could be replaced with getOrDefault, computeIfAbsent or -putIfAbsent. +Reports calls to Map.get() which could be replaced with getOrDefault(), computeIfAbsent() or +putIfAbsent().
    • Map.getOrDefault method could be used to replace the code like this:
      @@ -30,6 +30,6 @@ Inspection detects calls to Map.get which could be replaced with 
       
       

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

      -

      New in 2016.3 +

      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 0c79ad820c26..97c2e0b0e33c 100644 --- a/resources-en/src/inspectionDescriptions/Java8MapForEach.html +++ b/resources-en/src/inspectionDescriptions/Java8MapForEach.html @@ -1,6 +1,6 @@ -This inspection suggests to replace for(Entry<?,?> entry : map.entrySet()) {...} or +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. @@ -8,6 +8,6 @@ This inspection suggests to replace for(Entry<?,?> entry : map.entry

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

      -

      New in 2017.1 +

      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 f98c243abdfa..a6dfdb3ce02f 100644 --- a/resources-en/src/inspectionDescriptions/LambdaCanBeMethodCall.html +++ b/resources-en/src/inspectionDescriptions/LambdaCanBeMethodCall.html @@ -4,6 +4,6 @@ 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 +

      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 01683501583c..b69803728d8c 100644 --- a/resources-en/src/inspectionDescriptions/RedundantStreamOptionalCall.html +++ b/resources-en/src/inspectionDescriptions/RedundantStreamOptionalCall.html @@ -1,6 +1,6 @@ -This inspection warns about useless Stream or Optional calls like map(x -> x) or filter(x -> true), +Reports 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: @@ -8,6 +8,6 @@ useless sorted or distinct. "Report useless boxing in Stream.map" checkbox if you don't want such cases to be reported.

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

      -

      New in 2017.1 +

      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 2c3679da1e89..a927c830b976 100644 --- a/resources-en/src/inspectionDescriptions/SimplifyCollector.html +++ b/resources-en/src/inspectionDescriptions/SimplifyCollector.html @@ -1,9 +1,9 @@ -This inspection detects collectors which could be simplified. In particular some cascaded groupingBy collectors +Reports 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 only reports if the project or module is configured to use a language level of 8 or higher.

      -

      New in 2017.1 +

      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 eca70483a287..25e70693cee6 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. +Finds Stream API chains and provides quick fix to convert them into classical loops.

      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 + Special 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