You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sis.apache.org by de...@apache.org on 2018/02/19 21:51:40 UTC

svn commit: r1824821 - /sis/branches/ISO-19115-3/core/sis-utility/src/main/java/org/apache/sis/xml/InputFactory.java

Author: desruisseaux
Date: Mon Feb 19 21:51:40 2018
New Revision: 1824821

URL: http://svn.apache.org/viewvc?rev=1824821&view=rev
Log:
Fix the creation of an XMLEventReader form a XMLStreamReader.
This is required for GPX tests.

Modified:
    sis/branches/ISO-19115-3/core/sis-utility/src/main/java/org/apache/sis/xml/InputFactory.java

Modified: sis/branches/ISO-19115-3/core/sis-utility/src/main/java/org/apache/sis/xml/InputFactory.java
URL: http://svn.apache.org/viewvc/sis/branches/ISO-19115-3/core/sis-utility/src/main/java/org/apache/sis/xml/InputFactory.java?rev=1824821&r1=1824820&r2=1824821&view=diff
==============================================================================
--- sis/branches/ISO-19115-3/core/sis-utility/src/main/java/org/apache/sis/xml/InputFactory.java [UTF-8] (original)
+++ sis/branches/ISO-19115-3/core/sis-utility/src/main/java/org/apache/sis/xml/InputFactory.java [UTF-8] Mon Feb 19 21:51:40 2018
@@ -25,7 +25,6 @@ import javax.xml.stream.XMLStreamExcepti
 import javax.xml.transform.Source;
 import javax.xml.transform.dom.DOMSource;
 import javax.xml.transform.sax.SAXSource;
-import javax.xml.transform.stax.StAXSource;
 import org.w3c.dom.Node;
 import org.xml.sax.InputSource;
 import org.apache.sis.util.Static;
@@ -99,7 +98,7 @@ final class InputFactory extends Static
      * @throws XMLStreamException if the reader can not be created.
      */
     public static XMLEventReader createXMLEventReader(final XMLStreamReader in) throws XMLStreamException {
-        return FACTORY.createXMLEventReader(new StAXSource(in));
+        return FACTORY.createXMLEventReader(in);
     }
 
     /**