ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1484244 - /webservices/axiom/trunk/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/serializer/pull/Navigator.java
Date Sun, 19 May 2013 08:52:20 GMT
Author: veithen
Date: Sun May 19 08:52:20 2013
New Revision: 1484244

URL: http://svn.apache.org/r1484244
Log:
Some code simplification.

Modified:
    webservices/axiom/trunk/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/serializer/pull/Navigator.java

Modified: webservices/axiom/trunk/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/serializer/pull/Navigator.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/serializer/pull/Navigator.java?rev=1484244&r1=1484243&r2=1484244&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/serializer/pull/Navigator.java
(original)
+++ webservices/axiom/trunk/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/serializer/pull/Navigator.java
Sun May 19 08:52:20 2013
@@ -497,7 +497,9 @@ final class Navigator extends PullSerial
     }
 
     boolean hasNext() throws XMLStreamException {
-        return currentEvent != END_DOCUMENT;
+        // When we reach the end of the document, we switch to EndDocumentState.
+        // Therefore we can always return true here.
+        return true;
     }
 
     String getElementText() throws XMLStreamException {



Mime
View raw message