(int additionalCapacity)
| 424 | } |
| 425 | |
| 426 | private void require (int additionalCapacity) { |
| 427 | int sizeNeeded = size + additionalCapacity; |
| 428 | if (sizeNeeded - items.length > 0) resizeBuffer(sizeNeeded); |
| 429 | } |
| 430 | |
| 431 | /** Resizes the buffer to at least the size specified. |
| 432 | * @throws RuntimeException if the {@code minCapacity} is negative */ |
no test coverage detected