JIT optimization
()
| 455 | * JIT optimization |
| 456 | */ |
| 457 | private void growByOne() { |
| 458 | int adding = 0; |
| 459 | if (capacityIncrement <= 0) { |
| 460 | if ((adding = elementData.length) == 0) { |
| 461 | adding = 1; |
| 462 | } |
| 463 | } else { |
| 464 | adding = capacityIncrement; |
| 465 | } |
| 466 | |
| 467 | E[] newData = newElementArray(elementData.length + adding); |
| 468 | System.arraycopy(elementData, 0, newData, 0, elementCount); |
| 469 | elementData = newData; |
| 470 | } |
| 471 | |
| 472 | private void growBy(int required) { |
| 473 | int adding = 0; |
no test coverage detected