From 37c1e3c381943a09281dac31ff343bd9034cd1de Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Wed, 10 Jul 2013 08:05:32 +0000
Subject: [PATCH] *.java: Replaced collection concrete classes with interfaces. Used javadocs instead of line comments.
---
opends/src/server/org/opends/server/protocols/jmx/JmxConnectionHandler.java | 28 +++++++++++++++-------------
1 files changed, 15 insertions(+), 13 deletions(-)
diff --git a/opends/src/server/org/opends/server/protocols/jmx/JmxConnectionHandler.java b/opends/src/server/org/opends/server/protocols/jmx/JmxConnectionHandler.java
index 0d5ecdb..3ca70f3 100644
--- a/opends/src/server/org/opends/server/protocols/jmx/JmxConnectionHandler.java
+++ b/opends/src/server/org/opends/server/protocols/jmx/JmxConnectionHandler.java
@@ -28,7 +28,7 @@
package org.opends.server.protocols.jmx;
import static org.opends.messages.ProtocolMessages.*;
-import static org.opends.server.loggers.ErrorLogger.logError;
+import static org.opends.server.loggers.ErrorLogger.*;
import static org.opends.server.util.StaticUtils.*;
import java.io.IOException;
@@ -38,6 +38,7 @@
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
+import java.util.Map;
import org.opends.messages.Message;
import org.opends.server.admin.server.ConfigurationChangeListener;
@@ -80,27 +81,27 @@
public static final String TRUST_MANAGER_ARRAY_KEY =
"org.opends.server.protocol.jmx.ssl.trust.manager.array";
- // The fully-qualified name of this class.
+ /** The fully-qualified name of this class. */
private static final String CLASS_NAME =
"org.opends.server.protocols.jmx.JMXConnectionHandler";
- // The list of active client connection.
- private LinkedList<ClientConnection> connectionList;
+ /** The list of active client connection. */
+ private List<ClientConnection> connectionList;
- // The current configuration state.
+ /** The current configuration state. */
private JMXConnectionHandlerCfg currentConfig;
- // The JMX RMI Connector associated with the Connection handler.
+ /** The JMX RMI Connector associated with the Connection handler. */
private RmiConnector rmiConnector;
- // The unique name for this connection handler.
+ /** The unique name for this connection handler. */
private String connectionHandlerName;
- // The protocol used to communicate with clients.
+ /** The protocol used to communicate with clients. */
private String protocol;
- // The set of listeners for this connection handler.
- private LinkedList<HostPort> listeners = new LinkedList<HostPort>();
+ /** The set of listeners for this connection handler. */
+ private List<HostPort> listeners = new LinkedList<HostPort>();
/**
* Creates a new instance of this JMX connection handler. It must be
@@ -122,7 +123,7 @@
JMXConnectionHandlerCfg config) {
// Create variables to include in the response.
ResultCode resultCode = ResultCode.SUCCESS;
- ArrayList<Message> messages = new ArrayList<Message>();
+ List<Message> messages = new ArrayList<Message>();
// Determine whether or not the RMI connection needs restarting.
boolean rmiConnectorRestart = false;
@@ -214,8 +215,9 @@
* may produce.
*/
@Override
- public LinkedHashMap<String, String> getAlerts() {
- LinkedHashMap<String, String> alerts = new LinkedHashMap<String, String>();
+ public Map<String, String> getAlerts()
+ {
+ Map<String, String> alerts = new LinkedHashMap<String, String>();
return alerts;
}
--
Gitblit v1.10.0