JIT optimization
()
| 430 | * JIT optimization |
| 431 | */ |
| 432 | private void growByOne() { |
| 433 | int adding = 0; |
| 434 | if (capacityIncrement <= 0) { |
| 435 | if ((adding = elementData.length) == 0) { |
| 436 | adding = 1; |
| 437 | } |
| 438 | } else { |
| 439 | adding = capacityIncrement; |
| 440 | } |
| 441 | |
| 442 | E[] newData = newElementArray(elementData.length + adding); |
| 443 | System.arraycopy(elementData, 0, newData, 0, elementCount); |
| 444 | elementData = newData; |
| 445 | } |
| 446 | |
| 447 | private void growBy(int required) { |
| 448 | int adding = 0; |
no test coverage detected