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/test/java/org/opends/server/protocols/ldap/TestAddRequestProtocolOp.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/opendj-server-legacy/src/test/java/org/opends/server/protocols/ldap/TestAddRequestProtocolOp.java b/opendj-server-legacy/src/test/java/org/opends/server/protocols/ldap/TestAddRequestProtocolOp.java
index 6dacde8..7416222 100644
--- a/opendj-server-legacy/src/test/java/org/opends/server/protocols/ldap/TestAddRequestProtocolOp.java
+++ b/opendj-server-legacy/src/test/java/org/opends/server/protocols/ldap/TestAddRequestProtocolOp.java
@@ -55,7 +55,7 @@
   /** The protocol op type for add responses. */
   private static final byte OP_TYPE_ADD_RESPONSE = 0x69;
   /** The DN for add requests in this test case. */
-  private static final ByteString dn = ByteString.valueOf("dc=example,dc=com");
+  private static final ByteString dn = ByteString.valueOfUtf8("dc=example,dc=com");
 
   /**
    * Generate attributes for use in test cases. Attributes will have names
@@ -364,7 +364,7 @@
     List<RawAttribute> attributes =
         generateAttributes(numAttributes, numValues, " test");
 
-    ByteString dnNeedsBase64 = ByteString.valueOf("dc=example,dc=com ");
+    ByteString dnNeedsBase64 = ByteString.valueOfUtf8("dc=example,dc=com ");
 
     AddRequestProtocolOp addRequest =
         new AddRequestProtocolOp(dnNeedsBase64, attributes);

--
Gitblit v1.10.0