static L trimToSize(L l) { synchronized(l) { if (l instanceof ArrayList) ((ArrayList) l).trimToSize(); ifclass SynchronizedArrayList else if (l instanceof SynchronizedArrayList) ((SynchronizedArrayList) l).trimToSize(); endif } ret l; }