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/http/HTTPConnectionHandler.java |   15 +++++----------
 1 files changed, 5 insertions(+), 10 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/protocols/http/HTTPConnectionHandler.java b/opendj-server-legacy/src/main/java/org/opends/server/protocols/http/HTTPConnectionHandler.java
index beddd43..f0a8aab 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/protocols/http/HTTPConnectionHandler.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/protocols/http/HTTPConnectionHandler.java
@@ -128,7 +128,7 @@
   private boolean enabled;
 
   /** The set of listeners for this connection handler. */
-  private List<HostPort> listeners = new LinkedList<HostPort>();
+  private List<HostPort> listeners = new LinkedList<>();
 
   /** The HTTP server embedded in OpenDJ. */
   private HttpServer httpServer;
@@ -141,16 +141,12 @@
    * ensure no concurrent reads/writes can happen and adds/removes are fast. We
    * only use the keys, so it does not matter what value is put there.
    */
-  private Map<ClientConnection, ClientConnection> clientConnections =
-      new ConcurrentHashMap<ClientConnection, ClientConnection>();
+  private Map<ClientConnection, ClientConnection> clientConnections = new ConcurrentHashMap<>();
 
   /** The set of statistics collected for this connection handler. */
   private HTTPStatistics statTracker;
 
-  /**
-   * The client connection monitor provider associated with this connection
-   * handler.
-   */
+  /** The client connection monitor provider associated with this connection handler. */
   private ClientConnectionMonitorProvider connMonitor;
 
   /** The unique name assigned to this connection handler. */
@@ -161,8 +157,7 @@
 
   /**
    * The condition variable that will be used by the start method to wait for
-   * the socket port to be opened and ready to process requests before
-   * returning.
+   * the socket port to be opened and ready to process requests before returning.
    */
   private final Object waitListen = new Object();
 
@@ -342,7 +337,7 @@
   @Override
   public Map<String, String> getAlerts()
   {
-    Map<String, String> alerts = new LinkedHashMap<String, String>();
+    Map<String, String> alerts = new LinkedHashMap<>();
 
     alerts.put(ALERT_TYPE_HTTP_CONNECTION_HANDLER_CONSECUTIVE_FAILURES,
         ALERT_DESCRIPTION_HTTP_CONNECTION_HANDLER_CONSECUTIVE_FAILURES);

--
Gitblit v1.10.0