changeset 8267:b7cd01c971d2

Fix error introduced in test suite
author briangoetz
date Sat, 20 Apr 2013 12:19:30 -0400
parents 83c1e1a4487e
children 191bba4888f4
files test-ng/tests/org/openjdk/tests/java/util/stream/DistinctOpTest.java
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/test-ng/tests/org/openjdk/tests/java/util/stream/DistinctOpTest.java	Sat Apr 20 11:50:21 2013 -0400
+++ b/test-ng/tests/org/openjdk/tests/java/util/stream/DistinctOpTest.java	Sat Apr 20 12:19:30 2013 -0400
@@ -88,11 +88,10 @@
     @SuppressWarnings("serial")
     static class SortedTestData<T> extends TestData.AbstractTestData.RefTestData<T, List<T>> {
         SortedTestData(List<T> coll) {
-            int characteristics = Spliterator.ORDERED | Spliterator.SORTED;
             super("SortedTestData", coll,
-                  c -> StreamSupport.stream(Spliterators.spliterator(c.toArray(), characteristics)),
-                  c -> StreamSupport.parallelStream(Spliterators.spliterator(c.toArray(), characteristics)),
-                  c -> Spliterators.spliterator(c.toArray(), characteristics),
+                  c -> StreamSupport.stream(Spliterators.spliterator(c.toArray(), Spliterator.ORDERED | Spliterator.SORTED)),
+                  c -> StreamSupport.parallelStream(Spliterators.spliterator(c.toArray(), Spliterator.ORDERED | Spliterator.SORTED)),
+                  c -> Spliterators.spliterator(c.toArray(), Spliterator.ORDERED | Spliterator.SORTED),
                   List::size);
         }
     }