From d59ecfe632eb8fa9af03fc784fcfe4fb1eb8669e Mon Sep 17 00:00:00 2001 From: Tagir Valeev Date: Fri, 16 Sep 2016 08:51:41 +0700 Subject: [PATCH] IDEA-161194 follow-up: HTML description updated --- .../src/inspectionDescriptions/SimplifyStreamApiCallChains.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources-en/src/inspectionDescriptions/SimplifyStreamApiCallChains.html b/resources-en/src/inspectionDescriptions/SimplifyStreamApiCallChains.html index 5be8941547ee..5893d37ddfbe 100644 --- a/resources-en/src/inspectionDescriptions/SimplifyStreamApiCallChains.html +++ b/resources-en/src/inspectionDescriptions/SimplifyStreamApiCallChains.html @@ -13,6 +13,8 @@ It allows to avoid creating redundant temporary objects when traversing a collec
  • Collections.singletonList().stream() → Stream.of()
  • Collections.emptyList().stream() → Stream.empty()
  • Collections.emptySet().stream() → Stream.empty()
  • +
  • Stream.filter().findFirst().isPresent() → Stream.anyMatch()
  • +
  • Stream.filter().findAny().isPresent() → Stream.anyMatch()
  • Stream.collect(Collectors.counting()) → Stream.count()
  • Stream.collect(Collectors.maxBy()) → Stream.max()
  • Stream.collect(Collectors.minBy()) → Stream.min()