ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/TreeSetTest.java
(Generate patch)

Comparing jsr166/src/test/tck/TreeSetTest.java (file contents):
Revision 1.38 by jsr166, Sat Apr 25 04:55:31 2015 UTC vs.
Revision 1.39 by jsr166, Fri May 15 18:21:19 2015 UTC

# Line 91 | Line 91 | public class TreeSetTest extends JSR166T
91       */
92      public void testConstructor4() {
93          try {
94 <            Integer[] ints = new Integer[SIZE];
95 <            new TreeSet(Arrays.asList(ints));
94 >            new TreeSet(Arrays.asList(new Integer[SIZE]));
95              shouldThrow();
96          } catch (NullPointerException success) {}
97      }
# Line 101 | Line 100 | public class TreeSetTest extends JSR166T
100       * Initializing from Collection with some null elements throws NPE
101       */
102      public void testConstructor5() {
103 +        Integer[] ints = new Integer[SIZE];
104 +        for (int i = 0; i < SIZE-1; ++i)
105 +            ints[i] = new Integer(i);
106          try {
105            Integer[] ints = new Integer[SIZE];
106            for (int i = 0; i < SIZE-1; ++i)
107                ints[i] = new Integer(i);
107              new TreeSet(Arrays.asList(ints));
108              shouldThrow();
109          } catch (NullPointerException success) {}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines