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

Jean-Noël Rouvignac
08.34.2016 a3c93828f847345ed67fda0cddf1089d8fb433d5
opendj-server-legacy/src/main/java/org/opends/server/admin/server/DNBuilder.java
@@ -19,11 +19,10 @@
import org.forgerock.opendj.ldap.DN;
import org.opends.server.admin.LDAPProfile;
import org.opends.server.admin.ManagedObjectPath;
import org.opends.server.admin.RelationDefinition;
import org.forgerock.opendj.ldap.DN;
import org.opends.server.types.DirectoryException;
@@ -61,14 +60,9 @@
  public static DN create(ManagedObjectPath<?, ?> path,
      RelationDefinition<?, ?> relation) {
    DN dn = path.toDN();
    try {
      LDAPProfile profile = LDAPProfile.getInstance();
      DN localName = DN.valueOf(profile.getRelationRDNSequence(relation));
      return dn.child(localName);
    } catch (DirectoryException e) {
      throw new RuntimeException(e);
    }
    LDAPProfile profile = LDAPProfile.getInstance();
    DN localName = DN.valueOf(profile.getRelationRDNSequence(relation));
    return dn.child(localName);
  }