ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1312000 - /webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ElementImpl.java
Date Tue, 10 Apr 2012 21:28:42 GMT
Author: veithen
Date: Tue Apr 10 21:28:42 2012
New Revision: 1312000

URL: http://svn.apache.org/viewvc?rev=1312000&view=rev
Log:
No need to make a distinction in the OMElement#addAttribute implementation between attributes
with and without namespace. In both cases, the semantics of setAttributeNodeNS apply.

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

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ElementImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ElementImpl.java?rev=1312000&r1=1311999&r2=1312000&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ElementImpl.java
(original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ElementImpl.java
Tue Apr 10 21:28:42 2012
@@ -688,11 +688,7 @@ public class ElementImpl extends ParentN
             }
         }
 
-        if (attr.getNamespace() != null) { // If the attr has a namespace
-            this.setAttributeNodeNS((Attr) attr);
-        } else {
-            this.setAttributeNode((Attr) attr);
-        }
+        this.setAttributeNodeNS((Attr) attr);
         return attr;
     }
 



Mime
View raw message