question: void expandCapacity ( int minimumCapacity ) { int newCapacity = value . length * 2 + 2 ; if ( newCapacity - minimumCapacity < 0 ) newCapacity = minimumCapacity ; if ( newCapacity < 0 ) { if ( minimumCapacity < 0 ) throw new OutOfMemoryError ( ) ; newCapacity = Integer . MAX_VALUE ; } value = Arrays . copyOf ( value , newCapacity ) ; }
target:  This implements the expansion semantics of ensureCapacity with no size check or synchronization.