# | Line 595 | Line 595 | public class PriorityBlockingQueueTest e | |
---|---|---|
595 | } | |
596 | ||
597 | /** | |
598 | < | * toArray contains all elements |
598 | > | * toArray contains all elements |
599 | */ | |
600 | public void testToArray() throws InterruptedException { | |
601 | PriorityBlockingQueue q = populatedQueue(SIZE); | |
# | Line 813 | Line 813 | public class PriorityBlockingQueueTest e | |
813 | } | |
814 | ||
815 | /** | |
816 | < | * drainTo(c, n) empties first max {n, size} elements of queue into c |
816 | > | * drainTo(c, n) empties first min(n, size) elements of queue into c |
817 | */ | |
818 | public void testDrainToN() { | |
819 | PriorityBlockingQueue q = new PriorityBlockingQueue(SIZE*2); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |