Skip to content

Commit

Permalink
Forward patch from 5.5.2. Force default DocumentBuilderFactory to imp…
Browse files Browse the repository at this point in the history
…rove performance
  • Loading branch information
opatrascoiu committed Aug 8, 2023
1 parent 97c61bb commit 07e8bdf
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 07e8bdf

Please sign in to comment.