jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r1344223 - /jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/AbstractJCRTest.java
Date Wed, 30 May 2012 12:23:35 GMT
Author: reschke
Date: Wed May 30 12:23:35 2012
New Revision: 1344223

URL: http://svn.apache.org/viewvc?rev=1344223&view=rev
Log:
JCR-3322: test case coverage for isNodeType(expandedName) (remove 1.6ism)

Modified:
    jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/AbstractJCRTest.java

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/AbstractJCRTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/AbstractJCRTest.java?rev=1344223&r1=1344222&r2=1344223&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/AbstractJCRTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/AbstractJCRTest.java
Wed May 30 12:23:35 2012
@@ -633,7 +633,7 @@ public abstract class AbstractJCRTest ex
         String prefix = getPrefix(jcrName);
         String namespace = session.getNamespaceURI(prefix);
         String localname = getLocalName(jcrName);
-        return (!namespace.isEmpty() ? "{" + namespace + "}" : "") + localname;
+        return (namespace.length() > 0 ? "{" + namespace + "}" : "") + localname;
     }
 
     /**



Mime
View raw message