SEARCH-2321 Change SAX parser config in QueryRegister (#1066)

This commit is contained in:
Alex Mukha
2020-06-25 09:25:20 +01:00
committed by GitHub
parent 8f86564966
commit 537b324026

View File

@@ -136,7 +136,7 @@ public class QueryRegisterComponentImpl implements QueryRegisterComponent
try try
{ {
InputStream is = this.getClass().getClassLoader().getResourceAsStream(location); InputStream is = this.getClass().getClassLoader().getResourceAsStream(location);
SAXReader reader = new SAXReader(); SAXReader reader = SAXReader.createDefault();
Document document = reader.read(is); Document document = reader.read(is);
is.close(); is.close();
QueryCollection collection = QueryCollectionImpl.createQueryCollection(document.getRootElement(), dictionaryService, namespaceService); QueryCollection collection = QueryCollectionImpl.createQueryCollection(document.getRootElement(), dictionaryService, namespaceService);