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

Ludovic Poitou
22.03.2010 61960107e0dd01b4d5ee1143c7b0d3ac846764df
opendj-sdk/sdk/src/org/opends/sdk/responses/AbstractResponseImpl.java
@@ -22,7 +22,7 @@
 * CDDL HEADER END
 *
 *
 *      Copyright 2009 Sun Microsystems, Inc.
 *      Copyright 2010 Sun Microsystems, Inc.
 */
package org.opends.sdk.responses;
@@ -40,7 +40,6 @@
import com.sun.opends.sdk.util.Validator;
/**
 * Modifiable response implementation.
 *
@@ -64,6 +63,23 @@
  /**
   * Creates a new abstract response that is an exact copy of the provided
   * response.
   *
   * @param response
   *          The response to be copied.
   * @throws NullPointerException
   *           If {@code response} was {@code null} .
   */
  AbstractResponseImpl(Response response) throws NullPointerException
  {
    Validator.ensureNotNull(response);
    controls.addAll(response.getControls());
  }
  /**
   * {@inheritDoc}
   */
  public final S addControl(final Control control) throws NullPointerException