From 2a3158aad80fc910b83336485b3e545dea50066c Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Wed, 20 Apr 2016 09:23:30 +0000
Subject: [PATCH] guitools + quicksetup: added @Override + Autorefactor'ed comments

---
 opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/util/ConfigReader.java |   66 ++++++++------------------------
 1 files changed, 17 insertions(+), 49 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/util/ConfigReader.java b/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/util/ConfigReader.java
index f0147cb..2c26dbd 100644
--- a/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/util/ConfigReader.java
+++ b/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/util/ConfigReader.java
@@ -16,6 +16,8 @@
  */
 package org.opends.guitools.controlpanel.util;
 
+import static org.opends.messages.AdminToolMessages.*;
+
 import java.io.File;
 import java.net.InetAddress;
 import java.util.ArrayList;
@@ -27,22 +29,20 @@
 import org.forgerock.i18n.LocalizableMessage;
 import org.forgerock.i18n.slf4j.LocalizedLogger;
 import org.forgerock.opendj.config.server.ConfigException;
+import org.forgerock.opendj.ldap.DN;
+import org.forgerock.opendj.server.config.meta.AdministrationConnectorCfgDefn;
 import org.opends.guitools.controlpanel.datamodel.BackendDescriptor;
 import org.opends.guitools.controlpanel.datamodel.ConnectionHandlerDescriptor;
 import org.opends.guitools.controlpanel.datamodel.VLVSortOrder;
 import org.opends.guitools.controlpanel.task.OfflineUpdateException;
-import org.forgerock.opendj.server.config.meta.AdministrationConnectorCfgDefn;
 import org.opends.server.core.DirectoryServer;
 import org.opends.server.tools.tasks.TaskEntry;
-import org.forgerock.opendj.ldap.DN;
 import org.opends.server.types.DirectoryEnvironmentConfig;
 import org.opends.server.types.DirectoryException;
 import org.opends.server.types.InitializationException;
 import org.opends.server.types.OpenDsException;
 import org.opends.server.types.Schema;
 
-import static org.opends.messages.AdminToolMessages.*;
-
 /**
  * An abstract class providing some common interface for the class that read
  * the configuration (and if the server is running, the monitoring information).
@@ -56,10 +56,7 @@
    */
   public static String configFile;
 
-  /**
-   * The error that occurred when setting the environment (null if no error
-   * occurred).
-   */
+  /** The error that occurred when setting the environment (null if no error occurred). */
   protected static OpenDsException environmentSettingException;
   static
   {
@@ -92,65 +89,36 @@
     logger.info(LocalizableMessage.raw("Environment initialized."));
   }
 
-  /**
-   * The exceptions that occurred reading the configuration.
-   */
+  /** The exceptions that occurred reading the configuration. */
   protected List<Exception> exceptions = Collections.emptyList();
 
-  /**
-   * Whether the configuration has already been read or not.
-   */
+  /** Whether the configuration has already been read or not. */
   protected boolean configRead;
 
-  /**
-   * The set of connection listeners.
-   */
+  /** The set of connection listeners. */
   protected Set<ConnectionHandlerDescriptor> listeners = Collections.emptySet();
-
-  /**
-   * The administration connector.
-   */
+  /** The administration connector. */
   protected ConnectionHandlerDescriptor adminConnector;
 
-  /**
-   * The set of backend descriptors.
-   */
+  /** The set of backend descriptors. */
   protected Set<BackendDescriptor> backends = Collections.emptySet();
-
-  /**
-   * The set of administrative users.
-   */
+  /** The set of administrative users. */
   protected Set<DN> administrativeUsers = Collections.emptySet();
 
-  /**
-   * The replication serve port (-1 if the replication server port is not
-   * defined).
-   */
+  /** The replication serve port (-1 if the replication server port is not defined). */
   protected int replicationPort = -1;
-
-  /**
-   * The java version used to run the server.
-   */
+  /** The java version used to run the server. */
   protected String javaVersion;
 
-  /**
-   * The number of connections opened on the server.
-   */
+  /** The number of connections opened on the server. */
   protected int numberConnections;
 
-  /**
-   * Whether the schema checking is enabled or not.
-   */
+  /** Whether the schema checking is enabled or not. */
   protected boolean isSchemaEnabled;
-
-  /**
-   * The schema used by the server.
-   */
+  /** The schema used by the server. */
   protected Schema schema;
 
-  /**
-   * The task entries.
-   **/
+  /** The task entries. */
   protected Set<TaskEntry> taskEntries = Collections.emptySet();
 
   /**

--
Gitblit v1.10.0