# HG changeset patch # User psandoz # Date 1437050356 -7200 # Node ID 743f1a0eb0056a787e18b4f4c251a907f01d61cf # Parent 50b5db23b528e0482f7db227225e4193c8c24959 8131052: Documentation of AbstractSpliterator refers to forEach rather than forEachRemaining Reviewed-by: dfuchs diff -r 50b5db23b528 -r 743f1a0eb005 jdk/src/java.base/share/classes/java/util/Spliterators.java --- a/jdk/src/java.base/share/classes/java/util/Spliterators.java Thu Jul 16 10:21:21 2015 +0200 +++ b/jdk/src/java.base/share/classes/java/util/Spliterators.java Thu Jul 16 14:39:16 2015 +0200 @@ -1235,8 +1235,8 @@ *
An extending class need only * implement {@link #tryAdvance(java.util.function.Consumer) tryAdvance}. * The extending class should override - * {@link #forEachRemaining(java.util.function.Consumer) forEach} if it can - * provide a more performant implementation. + * {@link #forEachRemaining(java.util.function.Consumer) forEachRemaining} + * if it can provide a more performant implementation. * * @apiNote * This class is a useful aid for creating a spliterator when it is not @@ -1356,10 +1356,10 @@ * permit limited parallelism. * *
To implement a spliterator an extending class need only - * implement {@link #tryAdvance(java.util.function.IntConsumer)} + * implement {@link #tryAdvance(java.util.function.IntConsumer) * tryAdvance}. The extending class should override - * {@link #forEachRemaining(java.util.function.IntConsumer)} forEach} if it - * can provide a more performant implementation. + * {@link #forEachRemaining(java.util.function.IntConsumer) forEachRemaining} + * if it can provide a more performant implementation. * * @apiNote * This class is a useful aid for creating a spliterator when it is not @@ -1466,10 +1466,10 @@ * to permit limited parallelism. * *
To implement a spliterator an extending class need only - * implement {@link #tryAdvance(java.util.function.LongConsumer)} + * implement {@link #tryAdvance(java.util.function.LongConsumer) * tryAdvance}. The extending class should override - * {@link #forEachRemaining(java.util.function.LongConsumer)} forEach} if it - * can provide a more performant implementation. + * {@link #forEachRemaining(java.util.function.LongConsumer) forEachRemaining} + * if it can provide a more performant implementation. * * @apiNote * This class is a useful aid for creating a spliterator when it is not @@ -1576,10 +1576,10 @@ * {@code trySplit} to permit limited parallelism. * *
To implement a spliterator an extending class need only - * implement {@link #tryAdvance(java.util.function.DoubleConsumer)} + * implement {@link #tryAdvance(java.util.function.DoubleConsumer) * tryAdvance}. The extending class should override - * {@link #forEachRemaining(java.util.function.DoubleConsumer)} forEach} if - * it can provide a more performant implementation. + * {@link #forEachRemaining(java.util.function.DoubleConsumer) forEachRemaining} + * if it can provide a more performant implementation. * * @apiNote * This class is a useful aid for creating a spliterator when it is not