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/protocols/ldap/SearchResultEntryProtocolOp.java |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/opendj3-server-dev/src/server/org/opends/server/protocols/ldap/SearchResultEntryProtocolOp.java b/opendj3-server-dev/src/server/org/opends/server/protocols/ldap/SearchResultEntryProtocolOp.java
index 0c7d4b5..d384b23 100644
--- a/opendj3-server-dev/src/server/org/opends/server/protocols/ldap/SearchResultEntryProtocolOp.java
+++ b/opendj3-server-dev/src/server/org/opends/server/protocols/ldap/SearchResultEntryProtocolOp.java
@@ -26,8 +26,6 @@
  */
 package org.opends.server.protocols.ldap;
 
-
-
 import static org.opends.server.protocols.ldap.LDAPConstants.*;
 import static org.opends.server.util.ServerConstants.*;
 import static org.opends.server.util.StaticUtils.*;
@@ -45,7 +43,6 @@
 import org.opends.server.types.Attribute;
 import org.opends.server.types.AttributeBuilder;
 import org.opends.server.types.AttributeType;
-import org.opends.server.types.AttributeValue;
 import org.forgerock.opendj.ldap.ByteString;
 import org.opends.server.types.DN;
 import org.opends.server.types.Entry;
@@ -54,8 +51,6 @@
 import org.opends.server.types.SearchResultEntry;
 import org.opends.server.util.Base64;
 
-
-
 /**
  * This class defines the structures and methods for an LDAP search result entry
  * protocol op, which is used to return entries that match the associated search
@@ -637,9 +632,9 @@
     stream.writeStartSequence();
     stream.writeOctetString(a.getNameWithOptions());
     stream.writeStartSet();
-    for (AttributeValue value : a)
+    for (ByteString value : a)
     {
-      stream.writeOctetString(value.getValue());
+      stream.writeOctetString(value);
     }
     stream.writeEndSequence();
     stream.writeEndSequence();

--
Gitblit v1.10.0