changeset 5841:209cf2d7a552 it2-bootstrap

use default parallel (actually serial) impl rather than throw nyi
author mduigou
date Thu, 26 Jul 2012 14:48:08 -0700
parents 5bf732d191c0
children 4a7906022b7d
files src/share/classes/java/util/streams/ops/FindAnyOp.java src/share/classes/java/util/streams/ops/FindFirstOp.java src/share/classes/java/util/streams/ops/ToArrayOp.java
diffstat 3 files changed, 15 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/util/streams/ops/FindAnyOp.java	Fri Aug 03 12:04:52 2012 -0700
+++ b/src/share/classes/java/util/streams/ops/FindAnyOp.java	Thu Jul 26 14:48:08 2012 -0700
@@ -38,9 +38,9 @@
     public Optional<T> evaluate(Iterator<T> iterator) {
         return iterator.hasNext() ? new Optional<>(iterator.next()) : Optional.<T>empty();
     }
-
-    @Override
-    public <V> Optional<T> computeParallel(ParallelStreamable<V> source, ParallelOpHelper<T, V> helper) {
-        throw new UnsupportedOperationException("nyi");
-    }
+//
+//    @Override
+//    public <V> Optional<T> computeParallel(ParallelStreamable<V> source, ParallelOpHelper<T, V> helper) {
+//        throw new UnsupportedOperationException("nyi");
+//    }
 }
--- a/src/share/classes/java/util/streams/ops/FindFirstOp.java	Fri Aug 03 12:04:52 2012 -0700
+++ b/src/share/classes/java/util/streams/ops/FindFirstOp.java	Thu Jul 26 14:48:08 2012 -0700
@@ -38,9 +38,9 @@
     public Optional<T> evaluate(Iterator<T> iterator) {
         return iterator.hasNext() ? new Optional<>(iterator.next()) : Optional.<T>empty();
     }
-
-    @Override
-    public <V> Optional<T> computeParallel(ParallelStreamable<V> source, ParallelOpHelper<T, V> helper) {
-        throw new UnsupportedOperationException("nyi");
-    }
+//
+//    @Override
+//    public <V> Optional<T> computeParallel(ParallelStreamable<V> source, ParallelOpHelper<T, V> helper) {
+//        throw new UnsupportedOperationException("nyi");
+//    }
 }
--- a/src/share/classes/java/util/streams/ops/ToArrayOp.java	Fri Aug 03 12:04:52 2012 -0700
+++ b/src/share/classes/java/util/streams/ops/ToArrayOp.java	Thu Jul 26 14:48:08 2012 -0700
@@ -37,9 +37,9 @@
     public StatefulSink<T, Object[]> sink() {
         throw new UnsupportedOperationException("nyi");
     }
-
-    @Override
-    public <V> Object[] computeParallel(ParallelStreamable<V> source, ParallelOpHelper<T, V> helper) {
-        throw new UnsupportedOperationException("nyi");
-    }
+//
+//    @Override
+//    public <V> Object[] computeParallel(ParallelStreamable<V> source, ParallelOpHelper<T, V> helper) {
+//        throw new UnsupportedOperationException("nyi");
+//    }
 }