Skip to content

Commit

Permalink
Force default DocumentBuilderFactory to improve performance
Browse files Browse the repository at this point in the history
  • Loading branch information
opatrascoiu committed Jul 26, 2023
1 parent 1b91dc8 commit 3a1c1f7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*/
package com.gs.dmn.serialization;

import com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand All @@ -23,7 +24,8 @@ public class XMLUtil {
private static final Logger LOGGER = LoggerFactory.getLogger(XMLUtil.class);

public static DocumentBuilderFactory makeDocumentBuilderFactory() {
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilderFactory dbf = new DocumentBuilderFactoryImpl();

String attribute = null;
try {
attribute = XMLConstants.ACCESS_EXTERNAL_DTD;
Expand Down

0 comments on commit 3a1c1f7

Please sign in to comment.