commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r1234032 - /commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/model/jdom/JDOMNodePointer.java
Date Fri, 20 Jan 2012 17:53:31 GMT
Author: mbenson
Date: Fri Jan 20 17:53:31 2012
New Revision: 1234032

URL: http://svn.apache.org/viewvc?rev=1234032&view=rev
Log:
simplify empty string check

Modified:
    commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/model/jdom/JDOMNodePointer.java

Modified: commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/model/jdom/JDOMNodePointer.java
URL: http://svn.apache.org/viewvc/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/model/jdom/JDOMNodePointer.java?rev=1234032&r1=1234031&r2=1234032&view=diff
==============================================================================
--- commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/model/jdom/JDOMNodePointer.java
(original)
+++ commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/model/jdom/JDOMNodePointer.java
Fri Jan 20 17:53:31 2012
@@ -126,7 +126,7 @@ public class JDOMNodePointer extends Nod
         if (node instanceof Element) {
             Element element = (Element) node;
             String ns = element.getNamespaceURI();
-            if (ns != null && ns.equals("")) {
+            if ("".equals(ns)) {
                 ns = null;
             }
             return ns;



Mime
View raw message