jdk/src/share/classes/java/util/ArrayList.java
changeset 10419 12c063b39232
parent 9503 588cf31d584a
child 12448 b95438b17098
equal deleted inserted replaced
10418:1d57022fdb6e 10419:12c063b39232
   305             v.elementData = Arrays.copyOf(elementData, size);
   305             v.elementData = Arrays.copyOf(elementData, size);
   306             v.modCount = 0;
   306             v.modCount = 0;
   307             return v;
   307             return v;
   308         } catch (CloneNotSupportedException e) {
   308         } catch (CloneNotSupportedException e) {
   309             // this shouldn't happen, since we are Cloneable
   309             // this shouldn't happen, since we are Cloneable
   310             throw new InternalError();
   310             throw new InternalError(e);
   311         }
   311         }
   312     }
   312     }
   313 
   313 
   314     /**
   314     /**
   315      * Returns an array containing all of the elements in this list
   315      * Returns an array containing all of the elements in this list