jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1371106 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/name/NamespaceValidatorProvider.java
Date Thu, 09 Aug 2012 09:05:58 GMT
Author: jukka
Date: Thu Aug  9 09:05:58 2012
New Revision: 1371106

URL: http://svn.apache.org/viewvc?rev=1371106&view=rev
Log:
OAK-125: Improved namespace registry

Fix NamespaceValidator to use the new constants

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/name/NamespaceValidatorProvider.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/name/NamespaceValidatorProvider.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/name/NamespaceValidatorProvider.java?rev=1371106&r1=1371105&r2=1371106&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/name/NamespaceValidatorProvider.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/name/NamespaceValidatorProvider.java
Thu Aug  9 09:05:58 2012
@@ -16,6 +16,9 @@
  */
 package org.apache.jackrabbit.oak.plugins.name;
 
+import static org.apache.jackrabbit.JcrConstants.JCR_SYSTEM;
+import static org.apache.jackrabbit.oak.plugins.name.NamespaceConstants.REP_NAMESPACES;
+
 import org.apache.felix.scr.annotations.Component;
 import org.apache.felix.scr.annotations.Service;
 import org.apache.jackrabbit.oak.core.ReadOnlyTree;
@@ -37,7 +40,7 @@ public class NamespaceValidatorProvider 
     public Validator getRootValidator(NodeState before, NodeState after) {
         Validator validator = new NamespaceValidator(
                 Namespaces.getNamespaceMap(new ReadOnlyTree(before)));
-        return new SubtreeValidator(validator, "jcr:system", "jcr:namespaces");
+        return new SubtreeValidator(validator, JCR_SYSTEM, REP_NAMESPACES);
     }
 
 }



Mime
View raw message