From 5ba739b4813bcfb58ca7aea9730a6a2fcd18230a Mon Sep 17 00:00:00 2001 From: Bas Leijdekkers Date: Sat, 29 Jan 2022 14:15:45 +0100 Subject: [PATCH] small improvements to "Stream API call chain can be replaced with loop" inspection messages GitOrigin-RevId: 1bb01310db3e3233bf4ef1b1cb40a49ba50e793a --- java/java-impl/src/inspectionDescriptions/StreamToLoop.html | 4 ++-- java/openapi/resources/messages/JavaBundle.properties | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java/java-impl/src/inspectionDescriptions/StreamToLoop.html b/java/java-impl/src/inspectionDescriptions/StreamToLoop.html index 7c885636645b..b39e4a2b11a2 100644 --- a/java/java-impl/src/inspectionDescriptions/StreamToLoop.html +++ b/java/java-impl/src/inspectionDescriptions/StreamToLoop.html @@ -1,7 +1,7 @@ -Reports Stream API chains, Iterable.forEach, and Map.forEach calls that can be automatically converted into classical loops. -

Example:

+Reports Stream API chains, Iterable.forEach(), and Map.forEach() calls that can be automatically converted into classical loops. +

Example:


   String joinNonEmpty(List<String> list) {
     return list.stream() // Stream can be converted to loop
diff --git a/java/openapi/resources/messages/JavaBundle.properties b/java/openapi/resources/messages/JavaBundle.properties
index a96b56ff9355..b32b79b2548f 100644
--- a/java/openapi/resources/messages/JavaBundle.properties
+++ b/java/openapi/resources/messages/JavaBundle.properties
@@ -1390,7 +1390,7 @@ unchecked.warning.inspection.message.unchecked.generics.array.creation.for.varar
 type.migration.dialog.message.invalid.type=''{0}'' is an invalid type
 type.migration.dialog.message.void.not.applicable='void' is not applicable
 stream.to.loop.inspection.message.replace.stream.api.chain.with.loop=Replace Stream API chain with loop
-stream.to.loop.inspection.message.replace.foreach.call.with.loop=Replace 'forEach' call with loop
+stream.to.loop.inspection.message.replace.foreach.call.with.loop=Replace 'forEach()' call with loop
 todo.index.not.available=N/A
 simplify.stream.inspection.message.can.be.replaced=''{0}'' can be replaced with ''{1}''
 simplify.stream.inspection.message.can.be.replaced.may.change.semantics=''{0}'' can be replaced with ''{1}'' (may change semantics)