diff --git a/java/java-impl/src/inspectionDescriptions/SimplifyStreamApiCallChains.html b/java/java-impl/src/inspectionDescriptions/SimplifyStreamApiCallChains.html index f9bab0bbfc3f..9ef5ce660b4a 100644 --- a/java/java-impl/src/inspectionDescriptions/SimplifyStreamApiCallChains.html +++ b/java/java-impl/src/inspectionDescriptions/SimplifyStreamApiCallChains.html @@ -31,7 +31,7 @@ Simplification will often avoid some temporary object creation during collection
optional.orElseGet(() -> { throw new ...; }) → optional.orElseThrow()
- Note that the replacements semantic may have minor difference in some cases. For example,
+ Note that the replacement semantics may have minor differences in some cases. For example,
Collections.synchronizedList(...).stream().forEach() is not synchronized while
Collections.synchronizedList(...).forEach() is synchronized.
Also, collect(Collectors.maxBy()) returns an empty Optional if the resulting element is
diff --git a/java/java-tests/testData/inspection/streamApiCallChains/beforeBooleanIdentityOverriddenApply.java b/java/java-tests/testData/inspection/streamApiCallChains/beforeBooleanIdentityOverriddenApply.java
index e9e654db0d89..5d6a4139c860 100644
--- a/java/java-tests/testData/inspection/streamApiCallChains/beforeBooleanIdentityOverriddenApply.java
+++ b/java/java-tests/testData/inspection/streamApiCallChains/beforeBooleanIdentityOverriddenApply.java
@@ -1,4 +1,4 @@
-// "Merge with previous 'map' call" "false"
+// "Merge with previous 'map()' call" "false"
import java.util.function.Function;
import java.util.stream.Stream;
diff --git a/java/openapi/resources/messages/JavaBundle.properties b/java/openapi/resources/messages/JavaBundle.properties
index e66c62ce011e..a96b56ff9355 100644
--- a/java/openapi/resources/messages/JavaBundle.properties
+++ b/java/openapi/resources/messages/JavaBundle.properties
@@ -1400,10 +1400,10 @@ simplify.stream.collection.creation.fix.name=Replace with ''{0}'' constructor
simplify.stream.simple.stream.of.fix.name.use.stream.element.explicitly=Use Stream element explicitly
simplify.stream.simple.stream.of.message=Unnecessary single-element Stream
simplify.stream.replace.with.element.iteration.fix.message=Can be replaced with element iteration
-simplify.stream.remove.boolean.identity.fix.name=Merge with previous 'map' call
-simplify.stream.remove.boolean.identity.fix.message=Can be merged with previous 'map' call
-simplify.stream.replace.support.with.collection.fix.name=Replace with ''{0}.{1}'' call
-simplify.stream.replace.support.with.collection.fix.message=Can be replaced with ''{0}.{1}'' call
+simplify.stream.remove.boolean.identity.fix.name=Merge with previous 'map()' call
+simplify.stream.remove.boolean.identity.fix.message=Can be merged with previous 'map()' call
+simplify.stream.replace.support.with.collection.fix.name=Replace with ''{0}.{1}()'' call
+simplify.stream.replace.support.with.collection.fix.message=Can be replaced with ''{0}.{1}()'' call
simplify.stream.swap.filter.and.map.fix.name=Swap 'filter()' and 'map()'
simplify.stream.swap.filter.and.map.fix.message='filter()' and 'map()' can be swapped
simplify.stream.inspection.iterate.take.while.fix.name=Replace with three-arg 'iterate()'