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

Jean-Noel Rouvignac
20.43.2014 102154f6dcb414582963fb318c9cc5ab022bacad
BaseDnRegistry.java:
In clear(), remove null checks, because the fields can never be null.
1 files modified
13 ■■■■■ changed files
opendj3-server-dev/src/server/org/opends/server/core/BaseDnRegistry.java 13 ●●●●● patch | view | raw | blame | history
opendj3-server-dev/src/server/org/opends/server/core/BaseDnRegistry.java
@@ -24,7 +24,6 @@
 *      Copyright 2007-2008 Sun Microsystems, Inc.
 *      Portions Copyright 2014 ForgeRock AS
 */
package org.opends.server.core;
import java.util.LinkedList;
@@ -461,21 +460,9 @@
   * Clear and nullify this registry's internal state.
   */
  void clear() {
    if (baseDNs != null)
    {
      baseDNs.clear();
    }
    if (privateNamingContexts != null)
    {
      privateNamingContexts.clear();
    }
    if (publicNamingContexts != null)
    {
      publicNamingContexts.clear();
    }
  }
}