jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1421945 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/nodetype/ReadWriteNodeTypeManager.java
Date Fri, 14 Dec 2012 15:47:03 GMT
Author: angela
Date: Fri Dec 14 15:47:01 2012
New Revision: 1421945

URL: http://svn.apache.org/viewvc?rev=1421945&view=rev
Log:
add TODO

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/nodetype/ReadWriteNodeTypeManager.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/nodetype/ReadWriteNodeTypeManager.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/nodetype/ReadWriteNodeTypeManager.java?rev=1421945&r1=1421944&r2=1421945&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/nodetype/ReadWriteNodeTypeManager.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/nodetype/ReadWriteNodeTypeManager.java
Fri Dec 14 15:47:01 2012
@@ -152,12 +152,11 @@ public abstract class ReadWriteNodeTypeM
         }
 
         for (NodeTypeTemplate template : templates.values()) {
+            // TODO: NT_BASE is the oak-name, while the template is an JCR level API which
might have local namespace remapping
             if (!template.isMixin() && !NT_BASE.equals(template.getName())) {
-                String[] supertypes =
-                        template.getDeclaredSupertypeNames();
+                String[] supertypes = template.getDeclaredSupertypeNames();
                 if (supertypes.length == 0) {
-                    template.setDeclaredSuperTypeNames(
-                            new String[] {NT_BASE});
+                    template.setDeclaredSuperTypeNames(new String[] {NT_BASE});
                 } else {
                     // Check whether we need to add the implicit "nt:base" supertype
                     boolean needsNtBase = true;



Mime
View raw message