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

Jean-Noel Rouvignac
19.30.2014 377b2709c64b32fe93905b466482216c2cc0581c
opendj3-server-dev/src/server/org/opends/server/plugins/EntryUUIDPlugin.java
@@ -34,7 +34,6 @@
import java.util.UUID;
import org.forgerock.i18n.LocalizableMessage;
import org.forgerock.opendj.ldap.ByteString;
import org.forgerock.opendj.ldap.schema.AttributeUsage;
import org.opends.server.admin.server.ConfigurationChangeListener;
import org.opends.server.admin.std.meta.PluginCfgDefn;
@@ -175,9 +174,7 @@
    byte[] dnBytes = getBytes(entry.getName().toNormalizedString());
    UUID uuid = UUID.nameUUIDFromBytes(dnBytes);
    Attribute uuidAttr = Attributes.create(entryUUIDType,
        AttributeValues.create(entryUUIDType,
            ByteString.valueOf(uuid.toString())));
    Attribute uuidAttr = Attributes.create(entryUUIDType, uuid.toString());
    uuidList = new ArrayList<Attribute>(1);
    uuidList.add(uuidAttr);
    entry.putAttribute(entryUUIDType, uuidList);
@@ -210,8 +207,7 @@
    // Construct a new random UUID.
    UUID uuid = UUID.randomUUID();
    Attribute uuidAttr = Attributes.create(entryUUIDType,
        AttributeValues.create(entryUUIDType,uuid.toString()));
    Attribute uuidAttr = Attributes.create(entryUUIDType, uuid.toString());
    uuidList = new ArrayList<Attribute>(1);
    uuidList.add(uuidAttr);