summaryrefslogtreecommitdiffstats
path: root/java/sca/modules/common-xml/src
diff options
context:
space:
mode:
Diffstat (limited to 'java/sca/modules/common-xml/src')
-rw-r--r--java/sca/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/XMLDocumentHelper.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/java/sca/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/XMLDocumentHelper.java b/java/sca/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/XMLDocumentHelper.java
index d4dba04c01..33a97f4342 100644
--- a/java/sca/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/XMLDocumentHelper.java
+++ b/java/sca/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/XMLDocumentHelper.java
@@ -140,10 +140,10 @@ public class XMLDocumentHelper {
}
public static InputSource getInputSource(URL url, InputStream is) throws IOException {
- is = new BufferedInputStream(is);
- String encoding = getEncoding(is);
+ // is = new BufferedInputStream(is);
+ // String encoding = getEncoding(is);
InputSource inputSource = new InputSource(is);
- inputSource.setEncoding(encoding);
+ // inputSource.setEncoding(encoding);
// [rfeng] Make sure we set the system id as it will be used as the base URI for nested import/include
inputSource.setSystemId(url.toString());
return inputSource;