Apache Solr open-source search software
Make the static CoreParser.parseXML method package-private instead of private so that it's visible to and can be used by tests.
Christine Poerschke9d8fad7a6361
diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/CoreParser.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/CoreParser.javaindex 1416f255bdd..0c5cf842e98 100644--- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/CoreParser.java+++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/CoreParser.java@@ -116,7 +116,7 @@ public class CoreParser implements QueryBuilder {queryFactory.addBuilder(nodeName, builder);}- private static Document parseXML(InputStream pXmlFile) throws ParserException {+ static Document parseXML(InputStream pXmlFile) throws ParserException {DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();DocumentBuilder db = null;try {