This is an automated email from the ASF dual-hosted git repository.
reta pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/cxf.git The following commit(s) were added to refs/heads/master by this push: new 142ad32 Improved compatibility with native compilation (#741) 142ad32 is described below commit 142ad3290aff2b657ad267a1768fe6fcfeb2d584 Author: Bruno Gonçalves <[hidden email]> AuthorDate: Thu Jan 21 02:01:08 2021 +0000 Improved compatibility with native compilation (#741) --- .../src/main/java/org/apache/cxf/interceptor/FIStaxInInterceptor.java | 2 +- .../main/java/org/apache/cxf/interceptor/FIStaxOutInterceptor.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/org/apache/cxf/interceptor/FIStaxInInterceptor.java b/core/src/main/java/org/apache/cxf/interceptor/FIStaxInInterceptor.java index 5e6b0ba..4337e51 100644 --- a/core/src/main/java/org/apache/cxf/interceptor/FIStaxInInterceptor.java +++ b/core/src/main/java/org/apache/cxf/interceptor/FIStaxInInterceptor.java @@ -51,7 +51,7 @@ public class FIStaxInInterceptor extends AbstractPhaseInterceptor<Message> { return Boolean.TRUE.equals(message.containsKey(Message.REQUESTOR_ROLE)); } - private StAXDocumentParser getParser(InputStream in) { + private XMLStreamReader getParser(InputStream in) { StAXDocumentParser parser = new StAXDocumentParser(in); parser.setStringInterning(true); parser.setForceStreamClose(true); diff --git a/core/src/main/java/org/apache/cxf/interceptor/FIStaxOutInterceptor.java b/core/src/main/java/org/apache/cxf/interceptor/FIStaxOutInterceptor.java index 2a98430..1e6a4a5 100644 --- a/core/src/main/java/org/apache/cxf/interceptor/FIStaxOutInterceptor.java +++ b/core/src/main/java/org/apache/cxf/interceptor/FIStaxOutInterceptor.java @@ -113,7 +113,7 @@ public class FIStaxOutInterceptor extends AbstractPhaseInterceptor<Message> { if (force || PropertyUtils.isTrue(o)) { - StAXDocumentSerializer serializer = getOutput(out); + XMLStreamWriter serializer = getOutput(out); message.setContent(XMLStreamWriter.class, serializer); message.removeContent(OutputStream.class); @@ -138,7 +138,7 @@ public class FIStaxOutInterceptor extends AbstractPhaseInterceptor<Message> { } } - private StAXDocumentSerializer getOutput(OutputStream out) { + private XMLStreamWriter getOutput(OutputStream out) { /* StAXDocumentSerializer serializer = (StAXDocumentSerializer)m.getExchange().getEndpoint() .remove(StAXDocumentSerializer.class.getName()); |
Free forum by Nabble | Edit this page |