mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

matthew_swift
17.43.2007 6fa0b021682d98ef9f908dfa248985a8507c6fa0
opends/src/server/org/opends/server/admin/LDAPProfile.java
@@ -268,6 +268,10 @@
   */
  public String getObjectClass(AbstractManagedObjectDefinition<?, ?> d)
      throws MissingResourceException {
    if (d.isTop()) {
      return "top";
    }
    for (Wrapper profile : profiles) {
      String objectClass = profile.getObjectClass(d);
      if (objectClass != null) {
@@ -309,11 +313,6 @@
      d = d.getParent();
    }
    // Make sure that we have top.
    if (!s.contains("top")) {
      objectClasses.addFirst("top");
    }
    return objectClasses;
  }