Return-Path: Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: (qmail 32371 invoked from network); 12 Nov 2009 22:47:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Nov 2009 22:47:00 -0000 Received: (qmail 72530 invoked by uid 500); 12 Nov 2009 22:47:00 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 72440 invoked by uid 500); 12 Nov 2009 22:46:59 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 72429 invoked by uid 99); 12 Nov 2009 22:46:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Nov 2009 22:46:59 +0000 X-ASF-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Nov 2009 22:46:57 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 8965F23888FD; Thu, 12 Nov 2009 22:46:37 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@cxf.apache.org From: dkulp@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091112224637.8965F23888FD@eris.apache.org> 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();