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/VLVControl.java | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/sdk/src/org/opends/sdk/controls/VLVControl.java b/sdk/src/org/opends/sdk/controls/VLVControl.java
index 963827b..708cbae 100644
--- a/sdk/src/org/opends/sdk/controls/VLVControl.java
+++ b/sdk/src/org/opends/sdk/controls/VLVControl.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.Validator;
@@ -542,7 +542,7 @@
{
if (value == null)
{
- Message message = INFO_VLVREQ_CONTROL_NO_VALUE.get();
+ LocalizableMessage message = INFO_VLVREQ_CONTROL_NO_VALUE.get();
throw DecodeException.error(message);
}
@@ -565,7 +565,7 @@
}
catch (IOException e)
{
- Message message = INFO_VLVREQ_CONTROL_CANNOT_DECODE_VALUE
+ LocalizableMessage message = INFO_VLVREQ_CONTROL_CANNOT_DECODE_VALUE
.get(getExceptionMessage(e));
throw DecodeException.error(message, e);
}
@@ -596,7 +596,7 @@
{
if (value == null)
{
- Message message = INFO_VLVRES_CONTROL_NO_VALUE.get();
+ LocalizableMessage message = INFO_VLVRES_CONTROL_NO_VALUE.get();
throw DecodeException.error(message);
}
@@ -620,7 +620,7 @@
}
catch (IOException e)
{
- Message message = INFO_VLVRES_CONTROL_CANNOT_DECODE_VALUE
+ LocalizableMessage message = INFO_VLVRES_CONTROL_CANNOT_DECODE_VALUE
.get(getExceptionMessage(e));
throw DecodeException.error(message, e);
}
--
Gitblit v1.10.0