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

Nicolas Capponi
17.07.2013 7e51919e7cab2dec4f2b18e4b93004f6b3c1ee11
opendj-admin/src/main/java/org/opends/server/admin/client/ldap/LDAPManagedObject.java
@@ -37,7 +37,6 @@
import org.forgerock.opendj.ldap.LinkedAttribute;
import org.forgerock.opendj.ldap.LinkedHashMapEntry;
import org.forgerock.opendj.ldap.ModificationType;
import org.forgerock.opendj.ldap.RDN;
import org.forgerock.opendj.ldap.ResultCode;
import org.forgerock.opendj.ldap.requests.ModifyRequest;
import org.forgerock.opendj.ldap.requests.Requests;
@@ -175,8 +174,7 @@
                addObjectClassesToEntry(objectClasses, entry);
                // Create the branch's naming attribute.
                RDN rdn = dn.parent(dn.size() - 1).rdn();
                entry.addAttribute(rdn.getFirstAVA().toAttribute());
                entry.addAttribute(dn.rdn().getFirstAVA().toAttribute());
                // Create the entry.
                try {
@@ -204,8 +202,7 @@
        // Create the naming attribute if there is not naming property.
        PropertyDefinition<?> namingPropertyDef = getNamingPropertyDefinition();
        if (namingPropertyDef == null) {
            RDN rdn = dn.parent(dn.size() - 1).rdn();
            entry.addAttribute(rdn.getFirstAVA().toAttribute());
            entry.addAttribute(dn.rdn().getFirstAVA().toAttribute());
        }
        // Create the remaining attributes.