ws-commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r390986 - /webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/impl/llom/OMElementImpl.java
Date Mon, 03 Apr 2006 09:12:50 GMT
Author: dims
Date: Mon Apr  3 02:12:48 2006
New Revision: 390986

URL: http://svn.apache.org/viewcvs?rev=390986&view=rev
Log:
create EmptyIterator only once

Modified:
    webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/impl/llom/OMElementImpl.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=390986&r1=390985&r2=390986&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 02:12:48 2006
@@ -80,6 +80,7 @@
     protected int noPrefixNamespaceCounter = 0;
     protected OMNode lastChild;
     private int lineNumber;
+    private static final EmptyIterator EMPTY_ITERATOR = new EmptyIterator();
 
     /**
      * Constructor OMElementImpl.
@@ -458,7 +459,7 @@
      */
     public Iterator getAllAttributes() {
         if (attributes == null) {
-            return new EmptyIterator();
+            return EMPTY_ITERATOR;
         }
         return attributes.values().iterator();
     }



Mime
View raw message