From 80c58327faaa4873369f6bb949e62792c2f708e0 Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Wed, 15 Aug 2007 21:34:53 +0000
Subject: [PATCH] This commit is a step toward getting OpenDS internationalized. There are still issues to be resolved before we can declare that we are internationalized but this commit covers the bulk of changes needed at this time.
---
opends/src/server/org/opends/server/backends/jeb/ID2Entry.java | 15 +++++++--------
1 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/opends/src/server/org/opends/server/backends/jeb/ID2Entry.java b/opends/src/server/org/opends/server/backends/jeb/ID2Entry.java
index 1cd8fd1..237c0f3 100644
--- a/opends/src/server/org/opends/server/backends/jeb/ID2Entry.java
+++ b/opends/src/server/org/opends/server/backends/jeb/ID2Entry.java
@@ -25,11 +25,11 @@
* Portions Copyright 2006-2007 Sun Microsystems, Inc.
*/
package org.opends.server.backends.jeb;
+import org.opends.messages.Message;
import static org.opends.server.loggers.debug.DebugLogger.*;
import org.opends.server.loggers.debug.DebugTracer;
-import static org.opends.server.messages.MessageHandler.getMessage;
-import static org.opends.server.messages.JebMessages.*;
+import static org.opends.messages.JebMessages.*;
import com.sleepycat.je.*;
@@ -246,18 +246,17 @@
}
catch (Exception e)
{
- int msgID = MSGID_JEB_ENTRY_DATABASE_CORRUPT;
- String message = getMessage(msgID, id.toString());
- throw new JebException(msgID, message);
+ Message message = ERR_JEB_ENTRY_DATABASE_CORRUPT.get(id.toString());
+ throw new JebException(message);
}
break;
//case 0x00 :
// Call upgrade method? Call 0x00 decode method?
default :
- int msgID = MSGID_JEB_INCOMPATIBLE_ENTRY_VERSION;
- String message = getMessage(msgID, id.toString(), entryVersion);
- throw new JebException(msgID, message);
+ Message message =
+ ERR_JEB_INCOMPATIBLE_ENTRY_VERSION.get(id.toString(), entryVersion);
+ throw new JebException(message);
}
if (entry != null)
--
Gitblit v1.10.0