allow static resources to be gced

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1034361 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2010-11-12 12:06:46 +00:00
parent 15d4b3d65e
commit 69313c1d47
1 changed files with 2 additions and 0 deletions

View File

@ -63,7 +63,9 @@ public class TestSubScorerFreqs extends LuceneTestCase {
public static void finish() throws Exception {
s.getIndexReader().close();
s.close();
s = null;
dir.close();
dir = null;
}
private static class CountingCollector extends Collector {