# | Line 197 | Line 197 | public class PriorityBlockingQueueTest e | |
---|---|---|
197 | * Offer of non-Comparable throws CCE | |
198 | */ | |
199 | public void testOfferNonComparable() { | |
200 | + | PriorityBlockingQueue q = new PriorityBlockingQueue(1); |
201 | try { | |
201 | – | PriorityBlockingQueue q = new PriorityBlockingQueue(1); |
202 | – | q.offer(new Object()); |
202 | q.offer(new Object()); | |
203 | q.offer(new Object()); | |
204 | shouldThrow(); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |