ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1610882 - /webservices/axiom/trunk/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/OMContainerSupport.aj
Date Tue, 15 Jul 2014 23:17:41 GMT
Author: veithen
Date: Tue Jul 15 23:17:41 2014
New Revision: 1610882

URL: http://svn.apache.org/r1610882
Log:
Remove redundant code.

Modified:
    webservices/axiom/trunk/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/OMContainerSupport.aj

Modified: webservices/axiom/trunk/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/OMContainerSupport.aj
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/OMContainerSupport.aj?rev=1610882&r1=1610881&r2=1610882&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/OMContainerSupport.aj
(original)
+++ webservices/axiom/trunk/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/OMContainerSupport.aj
Tue Jul 15 23:17:41 2014
@@ -126,17 +126,10 @@ public aspect OMContainerSupport {
             // the same factory
             child = (INode)omNode;
         } else {
-            // Careful here: if the child was created by another Axiom implementation, it
doesn't
-            // necessarily implement INode
-            if (omNode.getOMFactory().getMetaFactory().equals(getOMFactory().getMetaFactory()))
{
-                child = (INode)omNode;
-            } else {
-                child = (INode)((OMFactoryEx)getOMFactory()).importNode(omNode);
-            }
             if (!isComplete()) {
                 build();
             }
-            if (child.getParent() == this && child == coreGetLastKnownChild()) {
+            if (omNode.getParent() == this && omNode == coreGetLastKnownChild())
{
                 // The child is already the last node. 
                 // We don't need to detach and re-add it.
                 return;



Mime
View raw message