From 377b2709c64b32fe93905b466482216c2cc0581c Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Wed, 19 Mar 2014 16:30:32 +0000
Subject: [PATCH] OPENDJ-1368 (CR-3232) Remove AttributeValue

---
 opendj3-server-dev/src/server/org/opends/server/plugins/EntryUUIDPlugin.java |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/opendj3-server-dev/src/server/org/opends/server/plugins/EntryUUIDPlugin.java b/opendj3-server-dev/src/server/org/opends/server/plugins/EntryUUIDPlugin.java
index 30a2a2a..279882c 100644
--- a/opendj3-server-dev/src/server/org/opends/server/plugins/EntryUUIDPlugin.java
+++ b/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);
 

--
Gitblit v1.10.0