From a89f7014aeb71dba5c94404dfea7eb89e7eeee74 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Wed, 08 Jul 2015 06:48:02 +0000
Subject: [PATCH] AutoRefactor'ed Use Diamond Operator

---
 opendj-server-legacy/src/main/java/org/opends/server/protocols/ldap/LDAPRequestHandler.java |   14 +++++---------
 1 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/protocols/ldap/LDAPRequestHandler.java b/opendj-server-legacy/src/main/java/org/opends/server/protocols/ldap/LDAPRequestHandler.java
index 7989128..9e0ac57 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/protocols/ldap/LDAPRequestHandler.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/protocols/ldap/LDAPRequestHandler.java
@@ -76,15 +76,13 @@
    * need to be registered with the selector.
    * TODO: revisit, see Issue 4202.
    */
-  private List<LDAPClientConnection> pendingConnections =
-    new LinkedList<LDAPClientConnection>();
+  private List<LDAPClientConnection> pendingConnections = new LinkedList<>();
 
   /** Lock object for synchronizing access to the pending connections queue. */
   private final Object pendingConnectionsLock = new Object();
 
   /** The list of connections ready for request processing. */
-  private LinkedList<LDAPClientConnection> readyConnections =
-    new LinkedList<LDAPClientConnection>();
+  private LinkedList<LDAPClientConnection> readyConnections = new LinkedList<>();
 
   /** The selector that will be used to monitor the client connections. */
   private final Selector selector;
@@ -100,10 +98,9 @@
    *
    * @param  connectionHandler  The LDAP connection handler with which this
    *                            request handler is associated.
-   * @param  requestHandlerID   The integer value that may be used to distingush
+   * @param  requestHandlerID   The integer value that may be used to distinguish
    *                            this request handler from others associated with
    *                            the same connection handler.
-   *
    * @throws  InitializationException  If a problem occurs while initializing
    *                                   this request handler.
    */
@@ -226,7 +223,7 @@
         if (!pendingConnections.isEmpty())
         {
           tmp = pendingConnections;
-          pendingConnections = new LinkedList<LDAPClientConnection>();
+          pendingConnections = new LinkedList<>();
         }
       }
 
@@ -471,8 +468,7 @@
    */
   public Collection<LDAPClientConnection> getClientConnections()
   {
-    ArrayList<LDAPClientConnection> connList =
-      new ArrayList<LDAPClientConnection>(keys.length);
+    ArrayList<LDAPClientConnection> connList = new ArrayList<>(keys.length);
     for (SelectionKey key : keys)
     {
       LDAPClientConnection c = (LDAPClientConnection) key.attachment();

--
Gitblit v1.10.0