From a3c93828f847345ed67fda0cddf1089d8fb433d5 Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 07 Mar 2016 15:04:03 +0000
Subject: [PATCH] OPENDJ-1342 Migrate AVA, RDN, and DN classes: DirectoryException => LocalizedIllegalArgumentException

---
 opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/util/NumSubordinateHacker.java |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/util/NumSubordinateHacker.java b/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/util/NumSubordinateHacker.java
index f5097ce..6ee92a8 100644
--- a/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/util/NumSubordinateHacker.java
+++ b/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/util/NumSubordinateHacker.java
@@ -21,7 +21,6 @@
 
 import org.forgerock.opendj.ldap.DN;
 import org.opends.server.types.LDAPURL;
-import org.opends.server.types.OpenDsException;
 
 /** Class used to handle the case where numsubordinates does not work between databases. */
 public class NumSubordinateHacker {
@@ -54,14 +53,7 @@
     if (!isUnreliableEntryListEmpty) {
       boolean isInServer = serverHost.equalsIgnoreCase(url.getHost()) && serverPort == url.getPort();
       if (isInServer) {
-        try
-        {
-          return unreliableEntryList.contains(DN.valueOf(url.getRawBaseDN()));
-        }
-        catch (OpenDsException oe)
-        {
-          throw new RuntimeException("Error decoding DN of url: " + url);
-        }
+        return unreliableEntryList.contains(DN.valueOf(url.getRawBaseDN()));
       }
     }
     return false;

--
Gitblit v1.10.0