From commits-return-49193-archive-asf-public=cust-asf.ponee.io@cxf.apache.org Tue May 15 18:45:38 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 84E0C180634 for ; Tue, 15 May 2018 18:45:37 +0200 (CEST) Received: (qmail 646 invoked by uid 500); 15 May 2018 16:45:36 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 637 invoked by uid 99); 15 May 2018 16:45:36 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 May 2018 16:45:36 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 1C4208085D; Tue, 15 May 2018 16:45:36 +0000 (UTC) Date: Tue, 15 May 2018 16:45:36 +0000 To: "commits@cxf.apache.org" Subject: [cxf] branch 3.1.x-fixes updated: Move TransformerFactory to the constructor MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <152640273601.24350.4026766668105768315@gitbox.apache.org> From: coheigea@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: cxf X-Git-Refname: refs/heads/3.1.x-fixes X-Git-Reftype: branch X-Git-Oldrev: 327a8724a3ec0eb18a8f97da158026287c99fdbb X-Git-Newrev: 3e6e11d78ad25427eb0e229ff150bfb193b5f9fe X-Git-Rev: 3e6e11d78ad25427eb0e229ff150bfb193b5f9fe X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. coheigea pushed a commit to branch 3.1.x-fixes in repository https://gitbox.apache.org/repos/asf/cxf.git The following commit(s) were added to refs/heads/3.1.x-fixes by this push: new 3e6e11d Move TransformerFactory to the constructor 3e6e11d is described below commit 3e6e11d78ad25427eb0e229ff150bfb193b5f9fe Author: Colm O hEigeartaigh AuthorDate: Tue May 15 16:33:35 2018 +0100 Move TransformerFactory to the constructor (cherry picked from commit 2508201c48a4946ae6133e5323cba871bb9f9a18) --- .../feature/transform/AbstractXSLTInterceptor.java | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/core/src/main/java/org/apache/cxf/feature/transform/AbstractXSLTInterceptor.java b/core/src/main/java/org/apache/cxf/feature/transform/AbstractXSLTInterceptor.java index 562e7b1..e288270 100644 --- a/core/src/main/java/org/apache/cxf/feature/transform/AbstractXSLTInterceptor.java +++ b/core/src/main/java/org/apache/cxf/feature/transform/AbstractXSLTInterceptor.java @@ -41,15 +41,6 @@ import org.apache.cxf.staxutils.StaxUtils; * Creates an XMLStreamReader from the InputStream on the Message. */ public abstract class AbstractXSLTInterceptor extends AbstractPhaseInterceptor { - private static final TransformerFactory TRANSFORM_FACTORY = TransformerFactory.newInstance(); - - static { - try { - TRANSFORM_FACTORY.setFeature(javax.xml.XMLConstants.FEATURE_SECURE_PROCESSING, true); - } catch (javax.xml.transform.TransformerConfigurationException ex) { - // - } - } private String contextPropertyName; private final Templates xsltTemplate; @@ -69,7 +60,15 @@ public abstract class AbstractXSLTInterceptor extends AbstractPhaseInterceptor