ws-commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ruchi...@apache.org
Subject svn commit: r391001 - /webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/impl/dom/ElementImpl.java
Date Mon, 03 Apr 2006 11:13:49 GMT
Author: ruchithf
Date: Mon Apr  3 04:13:46 2006
New Revision: 391001

URL: http://svn.apache.org/viewcvs?rev=391001&view=rev
Log:
changing doom according to r-390986: create EmptyIterator only once

Modified:
    webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/impl/dom/ElementImpl.java

Modified: webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/impl/dom/ElementImpl.java
URL: http://svn.apache.org/viewcvs/webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/impl/dom/ElementImpl.java?rev=391001&r1=391000&r2=391001&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/impl/dom/ElementImpl.java
(original)
+++ webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/impl/dom/ElementImpl.java
Mon Apr  3 04:13:46 2006
@@ -66,6 +66,8 @@
 
     private HashMap namespaces;
 
+    private static final EmptyIterator EMPTY_ITERATOR = new EmptyIterator();
+    
     /**
      * @param ownerDocument
      */
@@ -1178,7 +1180,7 @@
      */
     public Iterator getAllAttributes() {
         if (attributes == null) {
-            return new EmptyIterator();
+            return EMPTY_ITERATOR;
         }
         ArrayList list = new ArrayList();
         for (int i = 0; i < attributes.getLength(); i++) {



Mime
View raw message