cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [2/2] cxf git commit: Use a ByteArrayInputStream not wrapped in a reader so the parser can get the enocding from the bytes instead of assuming system encoding.
Date Wed, 15 Apr 2015 17:40:17 GMT
Use a ByteArrayInputStream not wrapped in a reader so the parser can get the enocding from
the bytes instead of assuming system encoding.


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/0b29878b
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/0b29878b
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/0b29878b

Branch: refs/heads/3.0.x-fixes
Commit: 0b29878b914c1f1f3d52dae6ba57702085e348ca
Parents: c1e3d65
Author: Daniel Kulp <dkulp@apache.org>
Authored: Wed Apr 15 13:36:10 2015 -0400
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Wed Apr 15 13:40:08 2015 -0400

----------------------------------------------------------------------
 .../org/apache/cxf/ws/addressing/EndpointReferenceUtils.java    | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/0b29878b/core/src/main/java/org/apache/cxf/ws/addressing/EndpointReferenceUtils.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/cxf/ws/addressing/EndpointReferenceUtils.java b/core/src/main/java/org/apache/cxf/ws/addressing/EndpointReferenceUtils.java
index 4ab5910..6155c50 100644
--- a/core/src/main/java/org/apache/cxf/ws/addressing/EndpointReferenceUtils.java
+++ b/core/src/main/java/org/apache/cxf/ws/addressing/EndpointReferenceUtils.java
@@ -21,7 +21,6 @@ package org.apache.cxf.ws.addressing;
 
 import java.io.ByteArrayInputStream;
 import java.io.InputStream;
-import java.io.InputStreamReader;
 import java.lang.ref.Reference;
 import java.lang.ref.SoftReference;
 import java.net.MalformedURLException;
@@ -218,9 +217,7 @@ public final class EndpointReferenceUtils {
             LSInputImpl impl = new LSInputImpl();
             impl.setSystemId(newId);
             impl.setBaseURI(newId);
-            impl.setCharacterStream(
-                new InputStreamReader(
-                    new ByteArrayInputStream(value)));
+            impl.setByteStream(new ByteArrayInputStream(value));
             return impl;
         }
     }


Mime
View raw message