From 440373baeea17544f6d440d6120d3d2a055234fa Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Thu, 21 Mar 2013 11:43:51 +0000
Subject: [PATCH] OPENDJ-808 Implement a simple commons REST based HTTP connection handler 

---
 opends/src/server/org/opends/server/protocols/http/HTTPConnectionHandler.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/opends/src/server/org/opends/server/protocols/http/HTTPConnectionHandler.java b/opends/src/server/org/opends/server/protocols/http/HTTPConnectionHandler.java
index 892b866..8c32c84 100644
--- a/opends/src/server/org/opends/server/protocols/http/HTTPConnectionHandler.java
+++ b/opends/src/server/org/opends/server/protocols/http/HTTPConnectionHandler.java
@@ -143,11 +143,11 @@
 
   /**
    * Holds the current client connections. Using {@link ConcurrentHashMap} to
-   * ensure no concurrent reads/writes can happen and adds/removes are fast.
-   * Using Void for the value since it has no use.
+   * 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, Void> clientConnections =
-      new ConcurrentHashMap<ClientConnection, Void>();
+  private Map<ClientConnection, ClientConnection> clientConnections =
+      new ConcurrentHashMap<ClientConnection, ClientConnection>();
 
   /** The unique name assigned to this connection handler. */
   private String handlerName;

--
Gitblit v1.10.0