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

Comparing jsr166/src/test/tck/PriorityQueueTest.java (file contents):
Revision 1.39 by jsr166, Tue Nov 22 16:54:27 2016 UTC vs.
Revision 1.40 by jsr166, Wed Jan 4 06:09:58 2017 UTC

# Line 44 | Line 44 | public class PriorityQueueTest extends J
44       * Integers 0 ... n - 1.
45       */
46      private PriorityQueue<Integer> populatedQueue(int n) {
47 <        PriorityQueue<Integer> q = new PriorityQueue<Integer>(n);
47 >        PriorityQueue<Integer> q = new PriorityQueue<>(n);
48          assertTrue(q.isEmpty());
49          for (int i = n - 1; i >= 0; i -= 2)
50              assertTrue(q.offer(new Integer(i)));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines