You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by re...@apache.org on 2021/01/21 03:13:47 UTC

[cxf] branch 3.4.x-fixes updated: Improved compatibility with native compilation (#741)

This is an automated email from the ASF dual-hosted git repository.

reta pushed a commit to branch 3.4.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/3.4.x-fixes by this push:
     new 533b1ec  Improved compatibility with native compilation (#741)
533b1ec is described below

commit 533b1ec3a379faa8a4ddb8c65ec924755efa5e2d
Author: Bruno Gonçalves <bn...@gmail.com>
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());