# | Line 189 | Line 189 | public class PriorityQueueTest extends J | |
---|---|---|
189 | * Offer of non-Comparable throws CCE | |
190 | */ | |
191 | public void testOfferNonComparable() { | |
192 | + | PriorityQueue q = new PriorityQueue(1); |
193 | try { | |
193 | – | PriorityQueue q = new PriorityQueue(1); |
194 | – | q.offer(new Object()); |
194 | q.offer(new Object()); | |
195 | q.offer(new Object()); | |
196 | shouldThrow(); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |