Author: veithen
Date: Fri Apr 6 22:12:00 2012
New Revision: 1310609
URL: http://svn.apache.org/viewvc?rev=1310609&view=rev
Log:
Removed unnecessary condition in if statement.
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ParentNode.java
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ParentNode.java
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ParentNode.java?rev=1310609&r1=1310608&r2=1310609&view=diff
==============================================================================
---
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ParentNode.java
(original)
+++
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ParentNode.java
Fri Apr 6 22:12:00 2012
@@ -383,8 +383,7 @@ public abstract class ParentNode extends
DOMException.HIERARCHY_REQUEST_ERR,
null));
}
- if (newDomChild != null &&
- //This is the case where this is an Element in the document
+ if (//This is the case where this is an Element in the document
(ownerDocument() != null &&
!ownerDocument().equals(newDomChild.ownerDocument())) ||
//This is the case where this is the Document itself
(ownerDocument() == null && !this.equals(ownerDocument()))) {