MCPcopy Index your code
hub / github.com/codenameone/CodenameOne / growByOne

Method growByOne

vm/JavaAPI/src/java/util/Vector.java:432–445  ·  view source on GitHub ↗

JIT optimization

()

Source from the content-addressed store, hash-verified

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;

Callers 3

addMethod · 0.95
addElementMethod · 0.95
insertElementAtMethod · 0.95

Calls 2

newElementArrayMethod · 0.95
arraycopyMethod · 0.95

Tested by

no test coverage detected