From 1b9f39db0f5450de6c3bb97cec681c342fff5944 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Tue, 08 Dec 2009 10:52:42 +0000
Subject: [PATCH] Move Message/MessageBuilder/LocalizableException/LocalizableIllegalArgumentException to public API since other public API elements reference them. Prefix Message/MessageBuilder with Localizable to emphasize that these classes are I18N related and not protocol messages. Keep MessageDescriptor private since users should not need access to it for now.

---
 sdk/src/org/opends/sdk/controls/PasswordPolicyControl.java |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/sdk/src/org/opends/sdk/controls/PasswordPolicyControl.java b/sdk/src/org/opends/sdk/controls/PasswordPolicyControl.java
index c191e8c..9f24331 100644
--- a/sdk/src/org/opends/sdk/controls/PasswordPolicyControl.java
+++ b/sdk/src/org/opends/sdk/controls/PasswordPolicyControl.java
@@ -10,12 +10,12 @@
 import org.opends.sdk.ByteString;
 import org.opends.sdk.ByteStringBuilder;
 import org.opends.sdk.DecodeException;
+import org.opends.sdk.LocalizableMessage;
 import org.opends.sdk.asn1.ASN1;
 import org.opends.sdk.asn1.ASN1Reader;
 import org.opends.sdk.asn1.ASN1Writer;
 import org.opends.sdk.schema.Schema;
 
-import com.sun.opends.sdk.util.Message;
 import com.sun.opends.sdk.util.StaticUtils;
 import com.sun.opends.sdk.util.Validator;
 
@@ -278,7 +278,7 @@
     {
       if (value != null)
       {
-        Message message = ERR_PWPOLICYREQ_CONTROL_HAS_VALUE.get();
+        LocalizableMessage message = ERR_PWPOLICYREQ_CONTROL_HAS_VALUE.get();
         throw DecodeException.error(message);
       }
 
@@ -311,7 +311,7 @@
       if (value == null)
       {
         // The response control must always have a value.
-        Message message = ERR_PWPOLICYRES_NO_CONTROL_VALUE.get();
+        LocalizableMessage message = ERR_PWPOLICYRES_NO_CONTROL_VALUE.get();
         throw DecodeException.error(message);
       }
 
@@ -335,7 +335,7 @@
           warningValue = (int) reader.readInteger();
           if (warningType == null)
           {
-            Message message = ERR_PWPOLICYRES_INVALID_WARNING_TYPE
+            LocalizableMessage message = ERR_PWPOLICYRES_INVALID_WARNING_TYPE
                 .get(byteToHex(reader.peekType()));
             throw DecodeException.error(message);
           }
@@ -348,7 +348,7 @@
           errorType = PasswordPolicyErrorType.valueOf(errorValue);
           if (errorType == null)
           {
-            Message message = ERR_PWPOLICYRES_INVALID_ERROR_TYPE
+            LocalizableMessage message = ERR_PWPOLICYRES_INVALID_ERROR_TYPE
                 .get(errorValue);
             throw DecodeException.error(message);
           }
@@ -372,7 +372,7 @@
         StaticUtils.DEBUG_LOG.throwing(
             "PasswordPolicyControl.ResponseDecoder", "decode", e);
 
-        Message message = ERR_PWPOLICYRES_DECODE_ERROR
+        LocalizableMessage message = ERR_PWPOLICYRES_DECODE_ERROR
             .get(getExceptionMessage(e));
         throw DecodeException.error(message);
       }

--
Gitblit v1.10.0