From 98e8aab354a385055392de7154758c1890a3265a Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Fri, 13 Feb 2015 16:40:03 +0000
Subject: [PATCH] AutoRefactor: use Collection.addAll()

---
 opendj-server-legacy/src/main/java/org/opends/server/tools/LDAPSearch.java |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/tools/LDAPSearch.java b/opendj-server-legacy/src/main/java/org/opends/server/tools/LDAPSearch.java
index 1627a8c..c072b8d 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/tools/LDAPSearch.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/tools/LDAPSearch.java
@@ -1117,12 +1117,7 @@
           return CLIENT_SIDE_PARAM_ERROR;
         }
       }
-      // The rest are attributes
-      for(String s : filterAndAttributeStrings)
-      {
-        attributes.add(s);
-      }
-
+      attributes.addAll(filterAndAttributeStrings);
     }
 
     if(bindPassword.isPresent() && bindPasswordFile.isPresent())

--
Gitblit v1.10.0