From 6d0403ded49a58d3198a2162234161daa3cf6116 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Wed, 24 Feb 2016 22:31:36 +0000
Subject: [PATCH] OPENDJ-2333 - remove unused i18n messages

---
 opendj-server-legacy/src/test/java/org/opends/server/replication/service/FakeReplicationDomain.java |   15 ++++++---------
 1 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/opendj-server-legacy/src/test/java/org/opends/server/replication/service/FakeReplicationDomain.java b/opendj-server-legacy/src/test/java/org/opends/server/replication/service/FakeReplicationDomain.java
index bd0ccc3..e39cb0e 100644
--- a/opendj-server-legacy/src/test/java/org/opends/server/replication/service/FakeReplicationDomain.java
+++ b/opendj-server-legacy/src/test/java/org/opends/server/replication/service/FakeReplicationDomain.java
@@ -12,7 +12,7 @@
  * information: "Portions Copyright [year] [name of copyright owner]".
  *
  * Copyright 2008-2010 Sun Microsystems, Inc.
- * Portions Copyright 2013-2015 ForgeRock AS.
+ * Portions Copyright 2013-2016 ForgeRock AS.
  */
 package org.opends.server.replication.service;
 
@@ -22,6 +22,7 @@
 import java.util.SortedSet;
 import java.util.concurrent.BlockingQueue;
 
+import org.forgerock.i18n.LocalizableMessage;
 import org.forgerock.opendj.config.server.ConfigException;
 import org.opends.server.replication.plugin.DomainFakeCfg;
 import org.opends.server.replication.protocol.UpdateMsg;
@@ -29,8 +30,6 @@
 import org.opends.server.types.DirectoryException;
 import org.forgerock.opendj.ldap.ResultCode;
 
-import static org.opends.messages.ReplicationMessages.*;
-
 /**
  * This class is the minimum implementation of a Concrete ReplicationDomain
  * used to test the Generic Replication Service.
@@ -123,8 +122,7 @@
     }
     catch (IOException e)
     {
-      throw new DirectoryException(ResultCode.OPERATIONS_ERROR,
-          ERR_BACKEND_EXPORT_ENTRY.get("", ""));
+      throw new DirectoryException(ResultCode.OPERATIONS_ERROR, LocalizableMessage.raw("exportBackend"));
     }
   }
 
@@ -138,11 +136,10 @@
       try
       {
         ret = input.read(buffer, 0, 1000);
-      } catch (IOException e)
+      }
+      catch (IOException e)
       {
-        throw new DirectoryException(
-            ResultCode.OPERATIONS_ERROR,
-            ERR_BACKEND_EXPORT_ENTRY.get("", ""));
+        throw new DirectoryException(ResultCode.OPERATIONS_ERROR, LocalizableMessage.raw("importBackend"));
       }
       if (ret>0)
       {

--
Gitblit v1.10.0