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

matthew_swift
13.48.2007 567150121840af35c215b2a4323cee149fc5802a
opends/src/server/org/opends/server/admin/client/ldap/LDAPManagementContext.java
@@ -47,7 +47,7 @@
   * connection.
   *
   * @param connection
   *          The LDAP connectin.
   *          The LDAP connection.
   * @return Returns the new management context.
   */
  public static ManagementContext createFromContext(LDAPConnection connection) {
@@ -55,29 +55,6 @@
    return new LDAPManagementContext(connection, LDAPProfile.getInstance());
  }
  /**
   * Create a new LDAP management context using the provided LDAP
   * connection and LDAP profile.
   * <p>
   * This constructor is primarily intended for testing purposes so
   * that unit tests can provide mock LDAP connections and LDAP
   * profiles.
   *
   * @param connection
   *          The LDAP connection.
   * @param profile
   *          The LDAP profile which should be used to construct LDAP
   *          requests and decode LDAP responses.
   * @return Returns the new management context.
   */
  public static ManagementContext createFromContext(LDAPConnection connection,
      LDAPProfile profile) {
    Validator.ensureNotNull(connection, profile);
    return new LDAPManagementContext(connection, profile);
  }
  // The LDAP connection.
  private final LDAPConnection connection;