changeset 7636:e42fc5c2911a

Collector.isConcurrent implemented on the current paritiioning collector.
author psandoz
date Thu, 14 Mar 2013 10:11:15 +0100
parents 7a3882e6da03
children 247a89d3853f
files src/share/classes/java/util/stream/Collectors.java
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/util/stream/Collectors.java	Thu Mar 14 10:11:13 2013 +0100
+++ b/src/share/classes/java/util/stream/Collectors.java	Thu Mar 14 10:11:15 2013 +0100
@@ -482,11 +482,6 @@
             public BinaryOperator<Map<Boolean, Collection<T>>> combiner() {
                 return leftPartitionMerger((Collection<T> left, Collection<T> right) -> { left.addAll(right); return left; });
             }
-
-            @Override
-            public boolean isConcurrent() {
-                return true;
-            }
         };
     }
 
@@ -556,6 +551,11 @@
             public BinaryOperator<Map<Boolean, Collection<T>>> combiner() {
                 return leftPartitionMerger((Collection<T> left, Collection<T> right) -> { left.addAll(right); return left; });
             }
+
+            @Override
+            public boolean isConcurrent() {
+                return true;
+            }
         };
     }