mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
10.16.2015 a632fbfad0ddbe8b343c6abe8e28dc41e3df9b7e
opendj-server-legacy/src/main/java/org/opends/server/monitors/ClientConnectionMonitorProvider.java
@@ -26,7 +26,6 @@
 */
package org.opends.server.monitors;
import java.util.Collection;
import java.util.List;
import java.util.TreeMap;
@@ -137,11 +136,9 @@
    if (handler == null)
    {
      // Get information about all the available connections.
      for (ConnectionHandler<?> hdl : DirectoryServer
          .getConnectionHandlers())
      for (ConnectionHandler<?> hdl : DirectoryServer.getConnectionHandlers())
      {
        // FIXME: connections from different handlers could have the
        // same ID.
        // FIXME: connections from different handlers could have the same ID.
        for (ClientConnection conn : hdl.getClientConnections())
        {
          connMap.put(conn.getConnectionID(), conn);
@@ -150,9 +147,7 @@
    }
    else
    {
      Collection<ClientConnection> collection =
          handler.getClientConnections();
      for (ClientConnection conn : collection)
      for (ClientConnection conn : handler.getClientConnections())
      {
        connMap.put(conn.getConnectionID(), conn);
      }