cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From buhhu...@apache.org
Subject [cxf] 02/02: cxf-rt-frontend-jaxrs: read stream directly
Date Thu, 05 Nov 2020 13:55:26 GMT
This is an automated email from the ASF dual-hosted git repository.

buhhunyx pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf.git

commit f3c4ac43c6043b8a2eb9682c7de3fba74a531c69
Author: Alexey Markevich <buhhunyx@gmail.com>
AuthorDate: Thu Nov 5 16:53:06 2020 +0300

    cxf-rt-frontend-jaxrs: read stream directly
---
 .../jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/xml/XMLSource.java    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/xml/XMLSource.java b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/xml/XMLSource.java
index 9273119..fdc36ce 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/xml/XMLSource.java
+++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/xml/XMLSource.java
@@ -35,7 +35,6 @@ import javax.xml.namespace.QName;
 import javax.xml.stream.XMLStreamException;
 import javax.xml.transform.Source;
 import javax.xml.transform.dom.DOMSource;
-import javax.xml.transform.stream.StreamSource;
 import javax.xml.xpath.XPath;
 import javax.xml.xpath.XPathConstants;
 import javax.xml.xpath.XPathExpressionException;
@@ -74,7 +73,7 @@ public class XMLSource {
      */
     public void setBuffering() {
         try {
-            doc = StaxUtils.read(new StreamSource(stream));
+            doc = StaxUtils.read(stream);
             stream = null;
         } catch (XMLStreamException e) {
             throw new Fault(e); 


Mime
View raw message