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 14:10:27 UTC

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

Repository: lucene-solr
Updated Branches:
  refs/heads/master 0e06e42ff -> cb840f524


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/cb840f52
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/cb840f52
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/cb840f52

Branch: refs/heads/master
Commit: cb840f5242234737cd3c0390f557f3faa4ad652d
Parents: 0e06e42
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 12:52:44 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/cb840f52/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 {