mirror of https://github.com/apache/lucene.git
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:
parent
2970a6c196
commit
18f1bda15d
|
@ -242,8 +242,8 @@ public final class SolrCore {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
void finalizer() { close(); }
|
protected void finalize() { close(); }
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
|
@ -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) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue