changeset 6408:4cae7924b7ef

applyInt should be used.
author psandoz
date Thu, 15 Nov 2012 16:34:18 +0100
parents 5a54b0ddbbcb
children 5cdf42e26646
files src/share/classes/java/util/streams/primitives/IntSpliterator.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/util/streams/primitives/IntSpliterator.java	Thu Nov 15 00:56:04 2012 -0500
+++ b/src/share/classes/java/util/streams/primitives/IntSpliterator.java	Thu Nov 15 16:34:18 2012 +0100
@@ -57,7 +57,7 @@
     default void forEach(IntBlock sink) {
         IntIterator remaining = iterator();
         while (remaining.hasNext()) {
-            sink.apply(remaining.nextInt());
+            sink.applyInt(remaining.nextInt());
         }
     }