Author: ajith
Date: Mon Apr 17 07:01:11 2006
New Revision: 394669
URL: http://svn.apache.org/viewcvs?rev=394669&view=rev
Log:
Fixed a detach problem in the OMElement.The earlier code did not detach the
Node when it was not fully built but just called the build method.
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=394669&r1=394668&r2=394669&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 17 07:01:11 2006
@@ -402,7 +402,7 @@
OMNamespace defaultNamespace = this.getDefaultNamespace();
if (defaultNamespace != null &&
uri.equals(defaultNamespace.getName())) {
- return defaultNamespace;
+ return defaultNamespace;
}
Iterator namespaceListIterator = namespaces.values().iterator();
@@ -578,9 +578,8 @@
public OMNode detach() throws OMException {
if (!done) {
build();
- } else {
- super.detach();
}
+ super.detach();
return this;
}