Skip to content

Apache Lucene open-source search software

fix static leak

Robert Muira6d953d22d21
diff --git a/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/TestTaxonomyFacetCounts2.java b/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/TestTaxonomyFacetCounts2.java
index 0300bd1e04c..d73f4b60a9e 100644
--- a/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/TestTaxonomyFacetCounts2.java
+++ b/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/TestTaxonomyFacetCounts2.java
@@ -92,6 +92,7 @@ public class TestTaxonomyFacetCounts2 extends FacetTestCase {
@AfterClass
public static void afterClassCountingFacetsAggregatorTest() throws Exception {
IOUtils.close(indexDir, taxoDir);
+ indexDir = taxoDir = null;
}
private static List<FacetField> randomCategories(Random random) {