|
Collections jdk source code
public static <T> void copy (List <? super T> dest, List <? extends T> src) {
int srcSize = src.size (); // source array
if (srcSize> dest.size ())
throw new IndexOutOfBoundsException ("Source does not fit in dest");
// If the size () of the source array> size () of the destination array, then IndexOutOfBoundsException is thrown |
|