finalize() was not correctly overridden, typo in function name

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@529367 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bertrand Delacretaz 2007-04-16 19:20:23 +00:00
parent 2970a6c196
commit 18f1bda15d
2 changed files with 4 additions and 3 deletions

View File

@ -242,8 +242,8 @@ public final class SolrCore {
} }
} }
@Override
void finalizer() { close(); } protected void finalize() { close(); }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////

View File

@ -101,7 +101,8 @@ public class SolrIndexWriter extends IndexWriter {
super.close(); super.close();
} }
void finalizer() { @Override
protected void finalize() {
try {super.close();} catch (IOException e) {} try {super.close();} catch (IOException e) {}
} }