cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r948876 - /cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/AbstractDOMStreamReader.java
Date Thu, 27 May 2010 16:21:09 GMT
Author: dkulp
Date: Thu May 27 16:21:09 2010
New Revision: 948876

URL: http://svn.apache.org/viewvc?rev=948876&view=rev
Log:
[CXF-2829] DOMStreamReader shouldn't generate attribute and namespace
events

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

Modified: cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/AbstractDOMStreamReader.java
URL: http://svn.apache.org/viewvc/cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/AbstractDOMStreamReader.java?rev=948876&r1=948875&r2=948876&view=diff
==============================================================================
--- cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/AbstractDOMStreamReader.java
(original)
+++ cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/AbstractDOMStreamReader.java
Thu May 27 16:21:09 2010
@@ -56,9 +56,6 @@ public abstract class AbstractDOMStreamR
         boolean started;
         boolean ended;
         
-        int currentAttribute = -1;
-        int currentNamespace = -1;
-
         List<String> uris;
         List<String> prefixes;
         List<Object> attributes;
@@ -144,12 +141,6 @@ public abstract class AbstractDOMStreamR
         if (!frame.started) {
             frame.started = true;
             currentEvent = frame.isDocument() ? START_DOCUMENT : START_ELEMENT;
-        } else if (frame.currentAttribute < getAttributeCount() - 1) {
-            frame.currentAttribute++;
-            currentEvent = ATTRIBUTE;
-        } else if (frame.currentNamespace < getNamespaceCount() - 1) {
-            frame.currentNamespace++;
-            currentEvent = NAMESPACE;
         } else if (hasMoreChildren()) {
             currentEvent = nextChild();
 



Mime
View raw message