This is an automated email from the ASF dual-hosted git repository.
lukaszlenart pushed a commit to branch WW-5252-external
in repository https://gitbox.apache.org/repos/asf/struts.git
The following commit(s) were added to refs/heads/WW-5252-external by this push:
new 8d2d99605 WW-5252 Reuses factory method
8d2d99605 is described below
commit 8d2d996056db234701cf79174e2ed3e70043f8fa
Author: Lukasz Lenart <[email protected]>
AuthorDate: Sun Oct 30 12:37:23 2022 +0100
WW-5252 Reuses factory method
---
core/src/main/java/org/apache/struts2/views/xslt/XSLTResult.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/src/main/java/org/apache/struts2/views/xslt/XSLTResult.java
b/core/src/main/java/org/apache/struts2/views/xslt/XSLTResult.java
index 31690362c..1361c628a 100644
--- a/core/src/main/java/org/apache/struts2/views/xslt/XSLTResult.java
+++ b/core/src/main/java/org/apache/struts2/views/xslt/XSLTResult.java
@@ -302,7 +302,7 @@ public class XSLTResult implements Result {
LOG.debug("Preparing XSLT stylesheet templates: {}", path);
- TransformerFactory factory = TransformerFactory.newInstance();
+ TransformerFactory factory = createTransformerFactory();
factory.setURIResolver(getURIResolver());
factory.setErrorListener(buildErrorListener());
templates = factory.newTemplates(new
StreamSource(resource.openStream()));