From dd692aac64b038e7f416f014ba5b01c0872461b3 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 13 Jul 2015 10:26:01 +0000
Subject: [PATCH] Used CollectionUtils methods.

---
 opendj-server-legacy/src/test/java/org/opends/server/authorization/dseecompat/AciTests.java |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/opendj-server-legacy/src/test/java/org/opends/server/authorization/dseecompat/AciTests.java b/opendj-server-legacy/src/test/java/org/opends/server/authorization/dseecompat/AciTests.java
index 822938f..69a0607 100644
--- a/opendj-server-legacy/src/test/java/org/opends/server/authorization/dseecompat/AciTests.java
+++ b/opendj-server-legacy/src/test/java/org/opends/server/authorization/dseecompat/AciTests.java
@@ -29,6 +29,7 @@
 
 import static org.opends.server.TestCaseUtils.*;
 import static org.opends.server.config.ConfigConstants.*;
+import static org.opends.server.util.CollectionUtils.*;
 import static org.opends.server.util.ServerConstants.*;
 import static org.testng.Assert.*;
 
@@ -842,7 +843,7 @@
   public Object[][] invalidAcis() throws Exception {
     TestCaseUtils.startServer();  // This appears to be necessary since the DataProviders can be called before @BeforeClass.
 
-    List<String> invalid = new ArrayList<>(Arrays.asList(INVALID_ACIS));
+    List<String> invalid = newArrayList(INVALID_ACIS);
     for (String[] aciAndMask: INVALID_ACIS_IF_ANY_CHAR_REMOVED) {
       invalid.addAll(getAciMissingCharCombos(aciAndMask[0], aciAndMask[1]));
     }
@@ -2595,7 +2596,7 @@
   }
 
   private static String getNotThisDayOfWeek() {
-    Set<String> otherDays = new HashSet<>(Arrays.asList(DAYS_OF_WEEK));
+    Set<String> otherDays = newHashSet(DAYS_OF_WEEK);
     otherDays.remove(getThisDayOfWeek());
     String dayList = "";
     for (String otherDay: otherDays) {

--
Gitblit v1.10.0