cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r835617 - /cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java
Date Thu, 12 Nov 2009 22:46:37 GMT
Author: dkulp
Date: Thu Nov 12 22:46:36 2009
New Revision: 835617

URL: http://svn.apache.org/viewvc?rev=835617&view=rev
Log:
Minor simplification

Modified:
    cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java

Modified: cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java
URL: http://svn.apache.org/viewvc/cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java?rev=835617&r1=835616&r2=835617&view=diff
==============================================================================
--- cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java (original)
+++ cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java Thu Nov
12 22:46:36 2009
@@ -737,9 +737,7 @@
     }
 
     public static Document read(XMLStreamReader reader) throws XMLStreamException {
-        Document doc = DOMUtils.createDocument();
-        readDocElements(doc, reader, true);
-        return doc;
+        return read(reader, false);
     }
     public static Document read(XMLStreamReader reader, boolean recordLoc) throws XMLStreamException
{
         Document doc = DOMUtils.createDocument();



Mime
View raw message