@Override protected void finalize() throws IOException { try { close(); } finally { try { super.finalize(); } catch (Throwable t) { // for consistency with the RI, we must override Object.finalize() to // remove the 'throws Throwable' clause. throw new AssertionError(t); } } }
/** Overridden to close the stream. */ @Override protected void finalize() throws Throwable { finish(); super.finalize(); }
protected void finalize() throws Throwable { close(); super.finalize(); }
@Override protected void finalize() throws Throwable { deleteTempFileIfExists(); super.finalize(); }