From 2dc073d0f37048372498e13ffe84455896bac945 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 18 May 2015 22:47:48 +0000
Subject: [PATCH] AutoRefactor'ed Use diamond operator

---
 opendj-server-legacy/src/dsml/org/opends/dsml/protocol/DSMLSearchOperation.java |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/opendj-server-legacy/src/dsml/org/opends/dsml/protocol/DSMLSearchOperation.java b/opendj-server-legacy/src/dsml/org/opends/dsml/protocol/DSMLSearchOperation.java
index b469ab2..0efbb3b 100644
--- a/opendj-server-legacy/src/dsml/org/opends/dsml/protocol/DSMLSearchOperation.java
+++ b/opendj-server-legacy/src/dsml/org/opends/dsml/protocol/DSMLSearchOperation.java
@@ -98,7 +98,7 @@
       throws LDAPException, IOException
   {
     List<JAXBElement<?>> list = filterSet.getFilterGroup();
-    ArrayList<RawFilter> filters = new ArrayList<RawFilter>(list.size());
+    ArrayList<RawFilter> filters = new ArrayList<>(list.size());
 
     for (JAXBElement<?> filter : list)
     {
@@ -245,7 +245,7 @@
       throws LDAPException, IOException
   {
     List<JAXBElement<?>> list = filterSet.getFilterGroup();
-    ArrayList<RawFilter> filters = new ArrayList<RawFilter>(list.size());
+    ArrayList<RawFilter> filters = new ArrayList<>(list.size());
 
     for (JAXBElement<?> filter : list)
     {
@@ -291,8 +291,7 @@
         throws LDAPException, IOException
   {
     List<Object> anyo = sf.getAny();
-    ArrayList<ByteString> subAnyElements = new ArrayList<ByteString>(anyo
-        .size());
+    ArrayList<ByteString> subAnyElements = new ArrayList<>(anyo.size());
 
     for (Object o : anyo)
     {
@@ -520,7 +519,7 @@
       scope = SearchScope.BASE_OBJECT;
     }
 
-    LinkedHashSet<String> attributes = new LinkedHashSet<String>();
+    LinkedHashSet<String> attributes = new LinkedHashSet<>();
     // Get the list of attributes.
     AttributeDescriptions attrDescriptions = searchRequest.getAttributes();
     if (attrDescriptions != null)

--
Gitblit v1.10.0