private void loadSupertypes()

in src/main/java/org/apache/sling/testing/mock/jcr/MockNodeType.java [207:217]


    private void loadSupertypes(NodeType nt, Set<NodeType> ntSet) {
        if (!ntSet.contains(nt)) {
            ntSet.add(nt);

            // walk up the ancestors
            NodeType[] supertypes = nt.getDeclaredSupertypes();
            for (NodeType nodeType : supertypes) {
                loadSupertypes(nodeType, ntSet);
            }
        }
    }