mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noël Rouvignac
08.34.2016 a3c93828f847345ed67fda0cddf1089d8fb433d5
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;