jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r535128 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/value/InternalValue.java
Date Fri, 04 May 2007 08:28:44 GMT
Author: mreutegg
Date: Fri May  4 01:28:43 2007
New Revision: 535128

URL: http://svn.apache.org/viewvc?view=rev&rev=535128
Log:
JCR-896: Unnecessary parsing of Name value

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/value/InternalValue.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/value/InternalValue.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/value/InternalValue.java?view=diff&rev=535128&r1=535127&r2=535128
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/value/InternalValue.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/value/InternalValue.java
Fri May  4 01:28:43 2007
@@ -315,12 +315,7 @@
                     throw new RepositoryException("internal error: encountered unregistered
namespace", npde);
                 }
             case PropertyType.NAME:
-                try {
-                    return NameValue.valueOf(NameFormat.format((QName) val, nsResolver));
-                } catch (NoPrefixDeclaredException npde) {
-                    // should never get here...
-                    throw new RepositoryException("internal error: encountered unregistered
namespace", npde);
-                }
+                return NameValue.valueOf((QName) val, nsResolver);
             case PropertyType.STRING:
                 return new StringValue((String) val);
             default:



Mime
View raw message