bundles/org.tukani.xz/src/org/tukaani/xz/ResettableArrayCache.java
public void reset() {
        if (byteArrays != null) {
            // Put the arrays to the cache in reverse order: the array that
            // was allocated first is returned last.
            synchronized(byteArrays) {
                for (int i = byteArrays.size() - 1; i >= 0; --i)
                    arrayCache.putArray(byteArrays.get(i));

                byteArrays.clear();
            }

            synchronized(intArrays) {
                for (int i = intArrays.size() - 1; i >= 0; --i)
                    arrayCache.putArray(intArrays.get(i));

                intArrays.clear();
            }
        }
    }
public void reset() {
        if (byteArrays != null) {
            // Put the arrays to the cache in reverse order: the array that
            // was allocated first is returned last.
            synchronized(byteArrays) {
                for (int i = byteArrays.size() - 1; i >= 0; --i)
                    arrayCache.putArray(byteArrays.get(i));

                byteArrays.clear();
            }

            synchronized(intArrays) {
                for (int i = intArrays.size() - 1; i >= 0; --i)
                    arrayCache.putArray(intArrays.get(i));

                intArrays.clear();
            }
        }
    }
public void reset ( ) { if ( byteArrays != null ) { // Put the arrays to the cache in reverse order: the array that // was allocated first is returned last. synchronized ( byteArrays ) { for ( int i = byteArrays . size ( ) - 1 ; i >= 0 ; -- i ) arrayCache . putArray ( byteArrays . get ( i ) ) ; byteArrays . clear ( ) ; } synchronized ( intArrays ) { for ( int i = intArrays . size ( ) - 1 ; i >= 0 ; -- i ) arrayCache . putArray ( intArrays . get ( i ) ) ; intArrays . clear ( ) ; } } }
Puts all allocated arrays back to the underlying ArrayCache
that haven't already been put there with a call to
{@code putArray}.
Puts all allocated arrays back to the underlying ArrayCache that haven t already been put there with a call to {