You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by cp...@apache.org on 2016/04/15 15:08:20 UTC

lucene-solr:branch_6x: LUCENE-7210: TestCoreParser.afterClass now resets (static) indexData/coreParser/analyzer to null.

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_6x 6ec124446 -> e6bcb131a


LUCENE-7210: TestCoreParser.afterClass now resets (static) indexData/coreParser/analyzer to null.


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/e6bcb131
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/e6bcb131
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/e6bcb131

Branch: refs/heads/branch_6x
Commit: e6bcb131a7f0ddb41c526f97a0327a6fb96a0be0
Parents: 6ec1244
Author: Christine Poerschke <cp...@apache.org>
Authored: Fri Apr 15 12:11:56 2016 +0100
Committer: Christine Poerschke <cp...@apache.org>
Committed: Fri Apr 15 13:11:10 2016 +0100

----------------------------------------------------------------------
 .../test/org/apache/lucene/queryparser/xml/TestCoreParser.java    | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/e6bcb131/lucene/queryparser/src/test/org/apache/lucene/queryparser/xml/TestCoreParser.java
----------------------------------------------------------------------
diff --git a/lucene/queryparser/src/test/org/apache/lucene/queryparser/xml/TestCoreParser.java b/lucene/queryparser/src/test/org/apache/lucene/queryparser/xml/TestCoreParser.java
index 9b18c81..82426d0 100644
--- a/lucene/queryparser/src/test/org/apache/lucene/queryparser/xml/TestCoreParser.java
+++ b/lucene/queryparser/src/test/org/apache/lucene/queryparser/xml/TestCoreParser.java
@@ -55,7 +55,10 @@ public class TestCoreParser extends LuceneTestCase {
   public static void afterClass() throws Exception {
     if (indexData != null) {
       indexData.close();
+      indexData = null;
     }
+    coreParser = null;
+    analyzer = null;
   }
 
   public void testTermQueryXML() throws ParserException, IOException {