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/replication/plugin/HistoricalAttributeValue.java |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/opendj3-server-dev/src/server/org/opends/server/replication/plugin/HistoricalAttributeValue.java b/opendj3-server-dev/src/server/org/opends/server/replication/plugin/HistoricalAttributeValue.java
index d215716..109c306 100644
--- a/opendj3-server-dev/src/server/org/opends/server/replication/plugin/HistoricalAttributeValue.java
+++ b/opendj3-server-dev/src/server/org/opends/server/replication/plugin/HistoricalAttributeValue.java
@@ -29,6 +29,7 @@
 import java.util.LinkedHashSet;
 import java.util.Set;
 
+import org.forgerock.opendj.ldap.ByteString;
 import org.forgerock.opendj.ldap.ModificationType;
 import org.opends.server.core.DirectoryServer;
 import org.opends.server.replication.common.CSN;
@@ -70,7 +71,7 @@
 {
   private AttributeType attrType;
   private String attrString;
-  private AttributeValue attributeValue;
+  private ByteString attributeValue;
   private CSN csn;
   private Set<String> options;
   private HistAttrModificationKey histKey;
@@ -136,10 +137,12 @@
       if (token.length == 4)
       {
         stringValue = token[3];
-        attributeValue = AttributeValues.create(attrType, stringValue);
+        attributeValue = ByteString.valueOf(stringValue);
       }
       else
+      {
         attributeValue = null;
+      }
     }
     else
     {
@@ -200,7 +203,7 @@
    * Get the Attribute Value.
    * @return The Attribute Value.
    */
-  public AttributeValue getAttributeValue()
+  public ByteString getAttributeValue()
   {
     return attributeValue;
   }

--
Gitblit v1.10.0