# | Line 349 | Line 349 | public class CopyOnWriteArrayList<E> | |
---|---|---|
349 | * @throws NullPointerException if the specified array is null | |
350 | */ | |
351 | @SuppressWarnings("unchecked") | |
352 | < | public <T> T[] toArray(T a[]) { |
352 | > | public <T> T[] toArray(T[] a) { |
353 | Object[] elements = getArray(); | |
354 | int len = elements.length; | |
355 | if (a.length < len) |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |