8131052: Documentation of AbstractSpliterator refers to forEach rather than forEachRemaining
Reviewed-by: dfuchs
--- 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 @@
* <p>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.
*
* <p>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.
*
* <p>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.
*
* <p>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