common/src/main/java/com/genexus/util/FastVector.java
/**
     * Trims the capacity of this vector to be the vector's current 
     * size. An application can use this operation to minimize the 
     * storage of a vector. 
     *
     * @since   JDK1.0
     */
Trims the capacity of this vector to be the vector's current
size. An application can use this operation to minimize the
storage of a vector.


Trims the capacity of this vector to be the vector ' s current size . An application can use this operation to minimize the storage of a vector .
public final void trimToSize() 
    {
		int oldCapacity = elementData.length;
		if (elementCount < oldCapacity) 
		{
	    	Object oldData[] = elementData;
		    elementData = new Object[elementCount];
		    System.arraycopy(oldData, 0, elementData, 0, elementCount);
		}
    }
public final void trimToSize ( ) { int oldCapacity = elementData . length ; if ( elementCount < oldCapacity ) { Object oldData [ ] = elementData ; elementData = new Object [ elementCount ] ; System . arraycopy ( oldData , 0 , elementData , 0 , elementCount ) ; } }
Trims the capacity of this vector to be the vector's current
 size.
Trims the capacity of this vector to be the vector ' s current size .