changeset 7365:49f8ac4374ad

Fix parition map iterator issue that was iterating twice over the true partition.
author psandoz
date Wed, 20 Feb 2013 16:39:46 +0100
parents 9d8305f2a26d
children f93625257fbd
files src/share/classes/java/util/stream/Collectors.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/util/stream/Collectors.java	Wed Feb 20 15:29:02 2013 +0100
+++ b/src/share/classes/java/util/stream/Collectors.java	Wed Feb 20 16:39:46 2013 +0100
@@ -381,7 +381,7 @@
                         @Override
                         public Map.Entry<Boolean, T> next() {
                             if (state < 2)
-                                return new Entry(++state);
+                                return new Entry(state++);
                             else
                                 throw new NoSuchElementException();
                         }