From 4baece95779dd46a3a59d59d1b7aa5958cf6117d Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Thu, 05 Nov 2015 12:25:29 +0000
Subject: [PATCH] OPENDJ-1802 Make ByteString methods more intentional
---
opendj-server-legacy/src/main/java/org/opends/server/protocols/ldap/LDAPAttribute.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/protocols/ldap/LDAPAttribute.java b/opendj-server-legacy/src/main/java/org/opends/server/protocols/ldap/LDAPAttribute.java
index b9b4a95..09cf9fa 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/protocols/ldap/LDAPAttribute.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/protocols/ldap/LDAPAttribute.java
@@ -81,7 +81,7 @@
{
this.attributeType = attributeType;
- values = newArrayList(ByteString.valueOf(value));
+ values = newArrayList(ByteString.valueOfUtf8(value));
}
@@ -120,7 +120,7 @@
this.values = new ArrayList<>(values.size());
for (String value : values)
{
- this.values.add(ByteString.valueOf(value));
+ this.values.add(ByteString.valueOfUtf8(value));
}
}
}
--
Gitblit v1.10.0