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/PreReadControl.java |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/sdk/src/org/opends/sdk/controls/PreReadControl.java b/sdk/src/org/opends/sdk/controls/PreReadControl.java
index c7e3661..e99101a 100644
--- a/sdk/src/org/opends/sdk/controls/PreReadControl.java
+++ b/sdk/src/org/opends/sdk/controls/PreReadControl.java
@@ -39,6 +39,7 @@
 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;
@@ -46,7 +47,6 @@
 import org.opends.sdk.responses.SearchResultEntry;
 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;
 
@@ -339,7 +339,7 @@
     {
       if (value == null)
       {
-        Message message = ERR_PREREADREQ_NO_CONTROL_VALUE.get();
+        LocalizableMessage message = ERR_PREREADREQ_NO_CONTROL_VALUE.get();
         throw DecodeException.error(message);
       }
 
@@ -359,7 +359,7 @@
         StaticUtils.DEBUG_LOG.throwing("PreReadControl.RequestDecoder",
             "decode", ae);
 
-        Message message = ERR_PREREADREQ_CANNOT_DECODE_VALUE.get(ae
+        LocalizableMessage message = ERR_PREREADREQ_CANNOT_DECODE_VALUE.get(ae
             .getMessage());
         throw DecodeException.error(message, ae);
       }
@@ -394,7 +394,7 @@
     {
       if (value == null)
       {
-        Message message = ERR_PREREADRESP_NO_CONTROL_VALUE.get();
+        LocalizableMessage message = ERR_PREREADRESP_NO_CONTROL_VALUE.get();
         throw DecodeException.error(message);
       }
 
@@ -409,7 +409,7 @@
         StaticUtils.DEBUG_LOG.throwing(
             "PersistentSearchControl.ResponseDecoder", "decode", le);
 
-        Message message = ERR_PREREADRESP_CANNOT_DECODE_VALUE.get(le
+        LocalizableMessage message = ERR_PREREADRESP_CANNOT_DECODE_VALUE.get(le
             .getMessage());
         throw DecodeException.error(message, le);
       }

--
Gitblit v1.10.0