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.41 by jsr166, Sat Mar 11 17:33:32 2017 UTC

# Line 15 | Line 15 | import java.util.PriorityQueue;
15   import java.util.Queue;
16  
17   import junit.framework.Test;
18 import junit.framework.TestSuite;
18  
19   public class PriorityQueueTest extends JSR166TestCase {
20      public static void main(String[] args) {
# Line 44 | Line 43 | public class PriorityQueueTest extends J
43       * Integers 0 ... n - 1.
44       */
45      private PriorityQueue<Integer> populatedQueue(int n) {
46 <        PriorityQueue<Integer> q = new PriorityQueue<Integer>(n);
46 >        PriorityQueue<Integer> q = new PriorityQueue<>(n);
47          assertTrue(q.isEmpty());
48          for (int i = n - 1; i >= 0; i -= 2)
49              assertTrue(q.offer(new Integer(i)));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines