# | Line 59 | Line 59 | public class LinkedBlockingQueueTest ext | |
---|---|---|
59 | * Integers 0 ... n - 1. | |
60 | */ | |
61 | private static LinkedBlockingQueue<Integer> populatedQueue(int n) { | |
62 | < | LinkedBlockingQueue<Integer> q = |
63 | < | new LinkedBlockingQueue<Integer>(n); |
62 | > | LinkedBlockingQueue<Integer> q = new LinkedBlockingQueue<>(n); |
63 | assertTrue(q.isEmpty()); | |
64 | for (int i = 0; i < n; i++) | |
65 | assertTrue(q.offer(new Integer(i))); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |