jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r494227 - /jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/CachingNameResolver.java
Date Mon, 08 Jan 2007 22:36:21 GMT
Author: jukka
Date: Mon Jan  8 14:36:20 2007
New Revision: 494227

URL: http://svn.apache.org/viewvc?view=rev&rev=494227
Log:
JCR-688: The special case has negligible effect on performance, thus removing it for simplicity.

Modified:
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/CachingNameResolver.java

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/CachingNameResolver.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/CachingNameResolver.java?view=diff&rev=494227&r1=494226&r2=494227
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/CachingNameResolver.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/CachingNameResolver.java
Mon Jan  8 14:36:20 2007
@@ -194,10 +194,6 @@
      * @throws NamespaceException if the namespace URI can not be resolved
      */
     public String getJCRName(QName qname) throws NamespaceException {
-        if (qname.getNamespaceURI().length() == 0) {
-            return qname.getLocalName();
-        }
-
         String name = (String) cache.get(qname);
         if (name == null) {
             name = (String) old.get(qname);



Mime
View raw message