To be filled in before a CSR is made publicly visible; concise one to two sentence summary of the proposed change.
There are no public method to trim the arrays on an existing path object to just the needed size for long term storage. This would be useful when an object will be kept in a static state for a long time and the added storage that was created for potential growth will never be used.
Add a trim method (and associated overrides) to trim the arrays
/** * Trims the capacity of this <tt>Path2D</tt> instance to be the * path's current size. An application can use this operation to minimize * the storage of a <tt>Path2D</tt> instance. * @since 1.9 */ public abstract void trimToSize();