From 460075839833c278f128c1482638767cdc68bfc7 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.

---
 opendj-sdk/sdk/src/org/opends/sdk/controls/GetEffectiveRightsRequestControl.java |   10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/opendj-sdk/sdk/src/org/opends/sdk/controls/GetEffectiveRightsRequestControl.java b/opendj-sdk/sdk/src/org/opends/sdk/controls/GetEffectiveRightsRequestControl.java
index f355daf..8820f0a 100644
--- a/opendj-sdk/sdk/src/org/opends/sdk/controls/GetEffectiveRightsRequestControl.java
+++ b/opendj-sdk/sdk/src/org/opends/sdk/controls/GetEffectiveRightsRequestControl.java
@@ -7,17 +7,13 @@
 import java.io.IOException;
 import java.util.*;
 
-import org.opends.sdk.ByteString;
-import org.opends.sdk.ByteStringBuilder;
-import org.opends.sdk.DN;
-import org.opends.sdk.DecodeException;
+import org.opends.sdk.*;
 import org.opends.sdk.asn1.ASN1;
 import org.opends.sdk.asn1.ASN1Reader;
 import org.opends.sdk.asn1.ASN1Writer;
 import org.opends.sdk.schema.AttributeType;
 import org.opends.sdk.schema.Schema;
 
-import com.sun.opends.sdk.util.Message;
 import com.sun.opends.sdk.util.Validator;
 
 
@@ -90,7 +86,7 @@
             authzDN = authzIDString.substring(3);
           else
           {
-            Message message = INFO_GETEFFECTIVERIGHTS_INVALID_AUTHZID
+            LocalizableMessage message = INFO_GETEFFECTIVERIGHTS_INVALID_AUTHZID
                 .get(lowerAuthzIDString);
             throw DecodeException.error(message);
           }
@@ -111,7 +107,7 @@
         }
         catch (IOException e)
         {
-          Message message = INFO_GETEFFECTIVERIGHTS_DECODE_ERROR.get(e
+          LocalizableMessage message = INFO_GETEFFECTIVERIGHTS_DECODE_ERROR.get(e
               .getMessage());
           throw DecodeException.error(message);
         }

--
Gitblit v1.10.0