From 5cd7bdbbda0fa9f1aa6e12d9171c3811b73feb07 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Thu, 09 Jul 2015 14:01:31 +0000
Subject: [PATCH] Code cleanup

---
 opendj-server-legacy/src/test/java/org/opends/server/protocols/ldap/TestAddRequestProtocolOp.java |   29 ++++++-----------------------
 1 files changed, 6 insertions(+), 23 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 04902a6..ee00194 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
@@ -50,29 +50,12 @@
  */
 public class TestAddRequestProtocolOp extends LdapTestCase
 {
-  /**
-   * The protocol op type for add requests.
-   */
+  /** The protocol op type for add requests. */
   private static final byte OP_TYPE_ADD_REQUEST = 0x68;
-
-
-
-  /**
-   * The protocol op type for add responses.
-   */
+  /** 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");
-
-  /**
-   * The alternative DN for add requests in this test case.
-   */
-  private static final ByteString dnAlt =
-      ByteString.valueOf("dc=sun,dc=com");
+  /** The DN for add requests in this test case. */
+  private static final ByteString dn = ByteString.valueOf("dc=example,dc=com");
 
   /**
    * Generate attributes for use in test cases. Attributes will have names
@@ -96,10 +79,10 @@
 
     for (int i = 0; i < numAttributes; i++)
     {
-      ArrayList<ByteString> values = new ArrayList<>();
+      ArrayList<String> values = new ArrayList<>();
       for (int j = 0; j < numValues; j++)
       {
-        values.add(ByteString.valueOf(prefix + "Value" + i + "." + j));
+        values.add(prefix + "Value" + i + "." + j);
       }
       attributes.add(new LDAPAttribute("testAttribute" + i, values));
     }

--
Gitblit v1.10.0