From ff1293486c5e276c25f0c2c040ffda78520249c5 Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Fri, 18 Sep 2015 13:59:37 +0000
Subject: [PATCH] Changed AuthPasswordSyntax*.decodeAuthPassword() return type from StringBuilder[] to String[]

---
 opendj-server-legacy/src/main/java/org/opends/server/schema/AuthPasswordSyntax.java |   18 ++++++------------
 1 files changed, 6 insertions(+), 12 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/AuthPasswordSyntax.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/AuthPasswordSyntax.java
index 8a8fa1f..308a2b1 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/AuthPasswordSyntax.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/schema/AuthPasswordSyntax.java
@@ -37,7 +37,6 @@
 import org.opends.server.api.AttributeSyntax;
 import org.opends.server.types.DirectoryException;
 
-
 /**
  * This class defines the auth password attribute syntax, which is defined in
  * RFC 3112 and is used to hold authentication information.  Only equality
@@ -58,7 +57,6 @@
     super();
   }
 
-  /** {@inheritDoc} */
   @Override
   public Syntax getSDKSyntax(Schema schema)
   {
@@ -110,8 +108,7 @@
    * @throws  DirectoryException  If a problem is encountered while attempting
    *                              to decode the value.
    */
-  public static StringBuilder[] decodeAuthPassword(String authPasswordValue)
-         throws DirectoryException
+  public static String[] decodeAuthPassword(String authPasswordValue) throws DirectoryException
   {
     // Create placeholders for the values to return.
     StringBuilder scheme    = new StringBuilder();
@@ -335,11 +332,11 @@
 
 
     // If we've gotten here, then everything must be OK.
-    return new StringBuilder[]
+    return new String[]
     {
-      scheme,
-      authInfo,
-      authValue
+      scheme.toString(),
+      authInfo.toString(),
+      authValue.toString()
     };
   }
 
@@ -354,10 +351,7 @@
    */
   public static boolean isEncoded(ByteSequence value)
   {
-    // FIXME -- Make this more efficient, and don't use exceptions for flow
-    // control.
-
-
+    // FIXME -- Make this more efficient, and don't use exceptions for flow control.
     try
     {
       decodeAuthPassword(value.toString());

--
Gitblit v1.10.0