From 4039d5a4652098e59a2eb14f6b2557235e993ab8 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Fri, 04 Dec 2009 17:04:27 +0000
Subject: [PATCH] Remove API references to com.sun.opends.* classes from public API (except I18 related classes). Remove ordinals from messages as they are not needed in SDK. Make some exception constructors package private.

---
 sdk/src/com/sun/opends/sdk/util/StaticUtils.java |   16 +---------------
 1 files changed, 1 insertions(+), 15 deletions(-)

diff --git a/sdk/src/com/sun/opends/sdk/util/StaticUtils.java b/sdk/src/com/sun/opends/sdk/util/StaticUtils.java
index 818389e..eff368a 100644
--- a/sdk/src/com/sun/opends/sdk/util/StaticUtils.java
+++ b/sdk/src/com/sun/opends/sdk/util/StaticUtils.java
@@ -1006,21 +1006,7 @@
     if (t instanceof LocalizableException)
     {
       final LocalizableException ie = (LocalizableException) t;
-
-      final StringBuilder message = new StringBuilder();
-      message.append(ie.getMessageObject());
-      message.append(" (id=");
-      final Message ieMsg = ie.getMessageObject();
-      if (ieMsg != null)
-      {
-        message.append(ieMsg.getDescriptor().getOrdinal());
-      }
-      else
-      {
-        message.append(MessageDescriptor.NULL_ID);
-      }
-      message.append(")");
-      return Message.raw(message.toString());
+      return ie.getMessageObject();
     }
     else if (t instanceof NullPointerException)
     {

--
Gitblit v1.10.0