From 9d1567e94139b8d951b36c3785cb7e24c36cc388 Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Thu, 14 Jun 2007 15:46:00 +0000
Subject: [PATCH] cleanup : suppress a few TODO comments by throwing exception and logging proper error message in case of unlikely failures.

---
 opendj-sdk/opends/src/server/org/opends/server/replication/protocol/ReplicationMessage.java |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/replication/protocol/ReplicationMessage.java b/opendj-sdk/opends/src/server/org/opends/server/replication/protocol/ReplicationMessage.java
index f4a8ecf..3cd873d 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/replication/protocol/ReplicationMessage.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/replication/protocol/ReplicationMessage.java
@@ -74,8 +74,10 @@
    * MSG_TYPE_ERROR
    *
    * @return the byte[] representation of this message.
+   * @throws UnsupportedEncodingException  When the encoding of the message
+   *         failed because the UTF-8 encoding is not supported.
    */
-  public abstract byte[] getBytes();
+  public abstract byte[] getBytes() throws UnsupportedEncodingException;
 
 
   /**

--
Gitblit v1.10.0