diff --git a/src/java.base/share/classes/java/util/Spliterator.java b/src/java.base/share/classes/java/util/Spliterator.java index a4f95e42ddf..517d71c191b 100644 --- a/src/java.base/share/classes/java/util/Spliterator.java +++ b/src/java.base/share/classes/java/util/Spliterator.java @@ -295,7 +295,7 @@ import java.util.function.LongConsumer; */ public interface Spliterator { /** - * If a remaining element exists, performs the given action on it, + * If a remaining element exists: performs the given action on it, * returning {@code true}; else returns {@code false}. If this * Spliterator is {@link #ORDERED} the action is performed on the * next element in encounter order. Exceptions thrown by the @@ -304,7 +304,7 @@ public interface Spliterator { * Subsequent behavior of a spliterator is unspecified if the action throws * an exception. * - * @param action The action + * @param action The action whose operation is performed at-most once * @return {@code false} if no remaining elements existed * upon entry to this method, else {@code true}. * @throws NullPointerException if the specified action is null