jzonthemtn commented on code in PR #512:
URL: https://github.com/apache/opennlp/pull/512#discussion_r1125507277
##########
opennlp-tools/src/main/java/opennlp/tools/dictionary/serializer/DictionaryEntryPersistor.java:
##########
@@ -225,16 +226,19 @@ public void startPrefixMapping(String prefix, String uri)
public static boolean create(InputStream in, EntryInserter inserter)
throws IOException {
- DictionaryContenthandler profileContentHandler =
- new DictionaryContenthandler(inserter);
+ DictionaryContenthandler profileContentHandler = new
DictionaryContenthandler(inserter);
XMLReader xmlReader;
try {
- xmlReader = XMLReaderFactory.createXMLReader();
+ xmlReader = SAX_PARSER_FACTORY.newSAXParser().getXMLReader();
+ // Note:
Review Comment:
What are the implications of this?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]