commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ebo...@apache.org
Subject svn commit: r652903 - /commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/axes/ChildContext.java
Date Fri, 02 May 2008 20:46:33 GMT
Author: ebourg
Date: Fri May  2 13:46:32 2008
New Revision: 652903

URL: http://svn.apache.org/viewvc?rev=652903&view=rev
Log:
Removed a redundant null check in ChildContext

Modified:
    commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/axes/ChildContext.java

Modified: commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/axes/ChildContext.java
URL: http://svn.apache.org/viewvc/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/axes/ChildContext.java?rev=652903&r1=652902&r2=652903&view=diff
==============================================================================
--- commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/axes/ChildContext.java
(original)
+++ commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/axes/ChildContext.java
Fri May  2 13:46:32 2008
@@ -110,7 +110,7 @@
             return;
         }
         NodePointer useParent = startFromParentLocation ? parent.getParent() : parent;
-        iterator = parent == null ? null : useParent.childIterator(nodeTest,
-                reverse, startFromParentLocation ? parent : null);
+        iterator = useParent.childIterator(nodeTest, reverse,
+                startFromParentLocation ? parent : null);
     }
 }



Mime
View raw message