commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r918623 - /commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/NamespaceResolver.java
Date Wed, 03 Mar 2010 18:47:47 GMT
Author: mbenson
Date: Wed Mar  3 18:47:47 2010
New Revision: 918623

URL: http://svn.apache.org/viewvc?rev=918623&view=rev
Log:
[JXPATH-135] self-evident infinite loop

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

Modified: commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/NamespaceResolver.java
URL: http://svn.apache.org/viewvc/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/NamespaceResolver.java?rev=918623&r1=918622&r2=918623&view=diff
==============================================================================
--- commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/NamespaceResolver.java
(original)
+++ commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/NamespaceResolver.java
Wed Mar  3 18:47:47 2010
@@ -49,7 +49,7 @@
      * @return prefix if found
      * @since JXPath 1.3
      */
-    protected static String getPrefix(NodePointer pointer, String namespaceURI) {
+    protected static String getPrefix(final NodePointer pointer, String namespaceURI) {
         NodePointer currentPointer = pointer;
         while (currentPointer != null) {
             NodeIterator ni = currentPointer.namespaceIterator();
@@ -63,7 +63,7 @@
                     }
                 }
             }
-            currentPointer = pointer.getParent();
+            currentPointer = currentPointer.getParent();
         }
         return null;
     }



Mime
View raw message