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/protocol/AddMsg.java |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/opendj3-server-dev/src/server/org/opends/server/replication/protocol/AddMsg.java b/opendj3-server-dev/src/server/org/opends/server/replication/protocol/AddMsg.java
index 2506869..914af11 100644
--- a/opendj3-server-dev/src/server/org/opends/server/replication/protocol/AddMsg.java
+++ b/opendj3-server-dev/src/server/org/opends/server/replication/protocol/AddMsg.java
@@ -48,7 +48,6 @@
 import org.opends.server.types.operation.PostOperationAddOperation;
 
 import static org.opends.server.replication.protocol.OperationContext.*;
-import static org.opends.server.util.StaticUtils.*;
 
 /**
  * This class is used to exchange Add operation between LDAP servers
@@ -333,8 +332,7 @@
       builder.setInitialCapacity(objectClasses.size());
       for (String s : objectClasses.values())
       {
-        builder.add(AttributeValues.create(ByteString.valueOf(s),
-            ByteString.valueOf(toLowerCase(s))));
+        builder.add(s);
       }
       Attribute attr = builder.toAttribute();
 
@@ -345,9 +343,10 @@
       {
         for (Attribute a : list)
         {
-          if (!EntryHistorical.isHistoricalAttribute(a))
-            if (!a.isVirtual())
-              new LDAPAttribute(a).write(writer);
+          if (!EntryHistorical.isHistoricalAttribute(a) && !a.isVirtual())
+          {
+            new LDAPAttribute(a).write(writer);
+          }
         }
       }
 

--
Gitblit v1.10.0