# | Line 524 | Line 524 | public class SynchronousQueueTest extend | |
---|---|---|
524 | * toArray(null) throws NPE | |
525 | */ | |
526 | public void testToArray_BadArg() { | |
527 | + | SynchronousQueue q = new SynchronousQueue(); |
528 | try { | |
528 | – | SynchronousQueue q = new SynchronousQueue(); |
529 | Object o[] = q.toArray(null); | |
530 | shouldThrow(); | |
531 | } catch (NullPointerException success) {} |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |