ws-commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r390994 - in /webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/impl/llom: OMElementImpl.java OMTextImpl.java
Date Mon, 03 Apr 2006 10:31:03 GMT
Author: dims
Date: Mon Apr  3 03:30:58 2006
New Revision: 390994

URL: http://svn.apache.org/viewcvs?rev=390994&view=rev
Log:
use the EMPTY_ITERATOR

Modified:
    webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/impl/llom/OMElementImpl.java
    webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/impl/llom/OMTextImpl.java

Modified: webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/impl/llom/OMElementImpl.java
URL: http://svn.apache.org/viewcvs/webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/impl/llom/OMElementImpl.java?rev=390994&r1=390993&r2=390994&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/impl/llom/OMElementImpl.java
(original)
+++ webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/impl/llom/OMElementImpl.java
Mon Apr  3 03:30:58 2006
@@ -435,19 +435,7 @@
      */
     public Iterator getAllDeclaredNamespaces() {
         if (namespaces == null) {
-            return new Iterator() {
-                public void remove() {
-                    throw new UnsupportedOperationException();
-                }
-
-                public boolean hasNext() {
-                    return false;
-                }
-
-                public Object next() {
-                    return null;
-                }
-            };
+            return EMPTY_ITERATOR;
         }
         return namespaces.values().iterator();
     }

Modified: webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/impl/llom/OMTextImpl.java
URL: http://svn.apache.org/viewcvs/webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/impl/llom/OMTextImpl.java?rev=390994&r1=390993&r2=390994&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/impl/llom/OMTextImpl.java
(original)
+++ webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/impl/llom/OMTextImpl.java
Mon Apr  3 03:30:58 2006
@@ -384,7 +384,7 @@
     }
 
     public boolean isComplete() {
-        return done;
+        return true;
     }
 
     public void serializeAndConsume(OMOutputImpl omOutput)



Mime
View raw message