lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cpoersc...@apache.org
Subject lucene-solr:branch_5x: LUCENE-7210: TestCoreParser.afterClass now resets (static) indexData/coreParser/analyzer to null.
Date Fri, 15 Apr 2016 13:41:54 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/branch_5x 2cf9e1d00 -> ddccac85c


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

Branch: refs/heads/branch_5x
Commit: ddccac85c2d5b7b714a5637e3579574f92174cad
Parents: 2cf9e1d
Author: Christine Poerschke <cpoerschke@apache.org>
Authored: Fri Apr 15 12:11:56 2016 +0100
Committer: Christine Poerschke <cpoerschke@apache.org>
Committed: Fri Apr 15 14:09:32 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/ddccac85/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 e60a837..bbff0e3 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 {


Mime
View raw message