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

Comparing jsr166/src/test/tck/ConcurrentSkipListSetTest.java (file contents):
Revision 1.25 by jsr166, Sat Nov 26 05:42:14 2011 UTC vs.
Revision 1.28 by jsr166, Tue Feb 21 02:04:17 2012 UTC

# Line 32 | Line 32 | public class ConcurrentSkipListSetTest e
32      }
33  
34      /**
35 <     * Create a set of given size containing consecutive
35 >     * Returns a new set of given size containing consecutive
36       * Integers 0 ... n.
37       */
38      private ConcurrentSkipListSet<Integer> populatedSet(int n) {
# Line 49 | Line 49 | public class ConcurrentSkipListSetTest e
49      }
50  
51      /**
52 <     * Create set of first 5 ints
52 >     * Returns a new set of first 5 ints.
53       */
54      private ConcurrentSkipListSet set5() {
55          ConcurrentSkipListSet q = new ConcurrentSkipListSet();
# Line 461 | Line 461 | public class ConcurrentSkipListSetTest e
461      public void testToArray2() {
462          ConcurrentSkipListSet<Integer> q = populatedSet(SIZE);
463          Integer[] ints = new Integer[SIZE];
464 <        Integer[] array = q.toArray(ints);
465 <        assertSame(ints, array);
464 >        assertSame(ints, q.toArray(ints));
465          for (int i = 0; i < ints.length; i++)
466              assertSame(ints[i], q.pollFirst());
467      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines