Skip to content

Commit

Permalink
cosmetic: use non-deprecated constant
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert committed Apr 15, 2020
1 parent 64bd254 commit 0ba06bd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import static org.apache.jackrabbit.oak.plugins.index.IndexConstants.INDEX_DEFINITIONS_NAME;
import static org.apache.jackrabbit.oak.plugins.index.IndexUtils.createIndexDefinition;
import static org.apache.jackrabbit.oak.spi.namespace.NamespaceConstants.REP_NAMESPACES;
import static org.apache.sling.jcr.resource.JcrResourceConstants.SLING_NAMESPACE_URI;
import static org.apache.sling.api.SlingConstants.NAMESPACE_URI_ROOT;

import org.apache.jackrabbit.oak.plugins.name.Namespaces;
import org.apache.jackrabbit.oak.spi.lifecycle.RepositoryInitializer;
Expand All @@ -45,7 +45,7 @@ public void initialize(@NotNull NodeBuilder root) {
NodeBuilder jcrSystem = root.getChildNode(JCR_SYSTEM);
if (jcrSystem.hasChildNode(REP_NAMESPACES)) {
NodeBuilder namespaces = jcrSystem.getChildNode(REP_NAMESPACES);
slingNs = Namespaces.addCustomMapping(namespaces, SLING_NAMESPACE_URI, slingNs);
slingNs = Namespaces.addCustomMapping(namespaces, NAMESPACE_URI_ROOT, slingNs);
Namespaces.buildIndexNode(namespaces);
}
}
Expand Down

0 comments on commit 0ba06bd

Please sign in to comment.