Skip to content

Commit 4fb9946

Browse files
author
Stephen Colebourne
committed
Remove finalize method
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/io/trunk@383391 13f79535-47bb-0310-9956-ffa450edef68
1 parent 30e99a4 commit 4fb9946

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

src/java/org/apache/commons/io/LineIterator.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -150,14 +150,6 @@ public void remove() {
150150
throw new UnsupportedOperationException("Remove unsupported on LineIterator");
151151
}
152152

153-
/**
154-
* Finalize which closes the underlying reader.
155-
* Do not rely on this method to handle cleanup - call closeQuietly yourself.
156-
*/
157-
protected void finalize() throws Throwable {
158-
close();
159-
}
160-
161153
//-----------------------------------------------------------------------
162154
/**
163155
* Closes the iterator, handling null and ignoring exceptions.

0 commit comments

Comments
 (0)