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/EntryChangeNotificationControl.java | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/sdk/src/org/opends/sdk/controls/EntryChangeNotificationControl.java b/sdk/src/org/opends/sdk/controls/EntryChangeNotificationControl.java
index 4981c4b..36c713e 100644
--- a/sdk/src/org/opends/sdk/controls/EntryChangeNotificationControl.java
+++ b/sdk/src/org/opends/sdk/controls/EntryChangeNotificationControl.java
@@ -8,16 +8,12 @@
import java.io.IOException;
-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.Schema;
-import com.sun.opends.sdk.util.Message;
import com.sun.opends.sdk.util.StaticUtils;
import com.sun.opends.sdk.util.Validator;
@@ -52,7 +48,7 @@
{
if (value == null)
{
- Message message = ERR_ECN_NO_CONTROL_VALUE.get();
+ LocalizableMessage message = ERR_ECN_NO_CONTROL_VALUE.get();
throw DecodeException.error(message);
}
@@ -71,7 +67,7 @@
{
if (changeType != PersistentSearchChangeType.MODIFY_DN)
{
- Message message = ERR_ECN_ILLEGAL_PREVIOUS_DN.get(String
+ LocalizableMessage message = ERR_ECN_ILLEGAL_PREVIOUS_DN.get(String
.valueOf(changeType));
throw DecodeException.error(message);
}
@@ -89,7 +85,7 @@
StaticUtils.DEBUG_LOG.throwing(
"EntryChangeNotificationControl.Decoder", "decode", e);
- Message message = ERR_ECN_CANNOT_DECODE_VALUE
+ LocalizableMessage message = ERR_ECN_CANNOT_DECODE_VALUE
.get(getExceptionMessage(e));
throw DecodeException.error(message, e);
}
--
Gitblit v1.10.0