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

Ludovic Poitou
14.52.2010 72650d4cc41c64136d064967d7fec3726d850fee
sdk/src/org/opends/sdk/requests/SearchRequestImpl.java
@@ -22,7 +22,7 @@
 * CDDL HEADER END
 *
 *
 *      Copyright 2009 Sun Microsystems, Inc.
 *      Copyright 2009-2010 Sun Microsystems, Inc.
 */
package org.opends.sdk.requests;
@@ -94,11 +94,13 @@
  /**
   * {@inheritDoc}
   */
  public SearchRequest addAttribute(final String attributeDescription)
  public SearchRequest addAttribute(final String... attributeDescriptions)
      throws NullPointerException
  {
    Validator.ensureNotNull(attributeDescription);
    attributes.add(attributeDescription);
    for (String attributeDescription : attributeDescriptions)
    {
      attributes.add(Validator.ensureNotNull(attributeDescription));
    }
    return this;
  }