Sets the capacity of this ArrayList to be the same as the current size. @see #size
()
| 641 | * @see #size |
| 642 | */ |
| 643 | public void trimToSize() { |
| 644 | E[] newArray = newElementArray(size); |
| 645 | System.arraycopy(array, firstIndex, newArray, 0, size); |
| 646 | array = newArray; |
| 647 | firstIndex = 0; |
| 648 | modCount = 0; |
| 649 | } |
| 650 | } |
nothing calls this directly
no test coverage detected