changeset 7660:cf9f0f28c5b6

Merge
author mduigou
date Fri, 15 Mar 2013 09:41:47 -0700
parents 865e314e2202 a569a060fbbf
children 08fb61af669d 5fef293b6775
files
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/util/stream/Stream/IntegerStreamTest.java	Fri Mar 15 15:08:09 2013 +0100
+++ b/test/java/util/stream/Stream/IntegerStreamTest.java	Fri Mar 15 09:41:47 2013 -0700
@@ -837,9 +837,7 @@
             List<Integer> sorted = new ArrayList<>(col);
             Collections.sort(sorted);
 
-            //SortedSet instance's stream can't be reordered
-            if(!(col instanceof SortedSet))
-                Collections.reverse(sorted);
+            Collections.reverse(sorted);
             assertEquals(sorted, reversed);
 
             @SuppressWarnings("cast")