directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From daune...@daune-consult.com
Subject Re: [Mina] CumulativeProtocolDecoder testing
Date Tue, 20 Sep 2005 06:27:48 GMT
I attach two methods that should do the trick.


    /**
     * Releases internal buffer.
     *
     * @see Object#finalize()
     */
    public void release() {
        if (buf != null) {
            buf.release();
            buf = null;
        }
    }

    /**
     * @see Object#finalize()
     */
    protected void finalize() throws Throwable {
        try {
            release();
        } finally {
            super.finalize();
        }
    }


Mime
View raw message