From 72650d4cc41c64136d064967d7fec3726d850fee Mon Sep 17 00:00:00 2001
From: Ludovic Poitou <ludovic.poitou@forgerock.com>
Date: Thu, 14 Oct 2010 11:52:28 +0000
Subject: [PATCH] Multiple enhancements and bug fixes to the SDK (update from OpenDS by matthew_swift):

---
 sdk/src/org/opends/sdk/requests/SearchRequestImpl.java |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/sdk/src/org/opends/sdk/requests/SearchRequestImpl.java b/sdk/src/org/opends/sdk/requests/SearchRequestImpl.java
index 2337021..a56b610 100644
--- a/sdk/src/org/opends/sdk/requests/SearchRequestImpl.java
+++ b/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;
   }
 

--
Gitblit v1.10.0