# | Line 403 | Line 403 | public class ConcurrentLinkedQueueTest e | |
---|---|---|
403 | } | |
404 | ||
405 | /** | |
406 | < | * toArray with incompatible array type throws ArrayStoreException |
406 | > | * toArray(incompatible array type) throws ArrayStoreException |
407 | */ | |
408 | public void testToArray1_BadArg() { | |
409 | ConcurrentLinkedQueue q = populatedQueue(SIZE); | |
410 | try { | |
411 | < | Object o[] = q.toArray(new String[10]); |
411 | > | q.toArray(new String[10]); |
412 | shouldThrow(); | |
413 | } catch (ArrayStoreException success) {} | |
414 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |