# | Line 105 | Line 105 | public class PriorityBlockingQueueTest e | |
---|---|---|
105 | ||
106 | public void testConstructor7(){ | |
107 | try { | |
108 | < | PriorityBlockingQueue q = new PriorityBlockingQueue(SIZE, new MyReverseComparator()); |
108 | > | MyReverseComparator cmp = new MyReverseComparator(); |
109 | > | PriorityBlockingQueue q = new PriorityBlockingQueue(SIZE, cmp); |
110 | > | assertEquals(cmp, q.comparator()); |
111 | Integer[] ints = new Integer[SIZE]; | |
112 | for (int i = 0; i < SIZE; ++i) | |
113 | ints[i] = new Integer(i); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |