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/server/ReplicationData.java |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/replication/server/ReplicationData.java b/opendj-sdk/opends/src/server/org/opends/server/replication/server/ReplicationData.java
index cb9985d..5e49dc2 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/replication/server/ReplicationData.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/replication/server/ReplicationData.java
@@ -26,6 +26,8 @@
  */
 package org.opends.server.replication.server;
 
+import java.io.UnsupportedEncodingException;
+
 import com.sleepycat.je.DatabaseEntry;
 
 import org.opends.server.replication.protocol.ReplicationMessage;
@@ -39,17 +41,25 @@
 {
   /**
    * Creates a new ReplicationData object from an UpdateMessage.
+   *
    * @param change the UpdateMessage used to create the ReplicationData.
+   *
+   * @throws UnsupportedEncodingException When the encoding of the message
+   *         failed because the UTF-8 encoding is not supported.
    */
   public ReplicationData(UpdateMessage change)
+         throws UnsupportedEncodingException
   {
     this.setData(change.getBytes());
   }
 
   /**
    * Generate an UpdateMessage from its byte[] form.
+   *
    * @param data The DatabaseEntry used to generate the UpdateMessage.
-   * @return The generated change.
+   *
+   * @return     The generated change.
+   *
    * @throws Exception When the data was not a valid Update Message.
    */
   public static UpdateMessage generateChange(byte[] data)

--
Gitblit v1.10.0