From a617fa03d6747065cc3c8ea949b0d34c098f91d2 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Fri, 29 Mar 2013 14:55:37 +0000
Subject: [PATCH] Minor fixes to toString() representation to help unit test debugging.

---
 opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/AbstractAttribute.java |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/AbstractAttribute.java b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/AbstractAttribute.java
index bb6d853..285a58a 100644
--- a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/AbstractAttribute.java
+++ b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/AbstractAttribute.java
@@ -131,21 +131,20 @@
      */
     static String toString(final Attribute attribute) {
         final StringBuilder builder = new StringBuilder();
-        builder.append("Attribute(");
+        builder.append('"');
         builder.append(attribute.getAttributeDescriptionAsString());
-        builder.append(", {");
-
+        builder.append("\":[");
         boolean firstValue = true;
         for (final ByteString value : attribute) {
             if (!firstValue) {
-                builder.append(", ");
+                builder.append(',');
             }
-
+            builder.append('"');
             builder.append(value);
+            builder.append('"');
             firstValue = false;
         }
-
-        builder.append("})");
+        builder.append(']');
         return builder.toString();
     }
 

--
Gitblit v1.10.0