From 866891aeea5bfb50dc307223dd74db7316a20140 Mon Sep 17 00:00:00 2001
From: Gaetan Boismal <gaetan.boismal@forgerock.com>
Date: Wed, 23 Mar 2016 16:54:44 +0000
Subject: [PATCH] OPENDJ-2765 Code cleanup

---
 opendj-server-legacy/src/main/java/org/opends/server/tools/upgrade/UpgradeLog.java |   19 ++++++-------------
 1 files changed, 6 insertions(+), 13 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/tools/upgrade/UpgradeLog.java b/opendj-server-legacy/src/main/java/org/opends/server/tools/upgrade/UpgradeLog.java
index e1e65a0..23c89b6 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/tools/upgrade/UpgradeLog.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/tools/upgrade/UpgradeLog.java
@@ -29,29 +29,23 @@
 import static org.opends.messages.ToolMessages.ERR_UPGRADE_INVALID_LOG_FILE;
 
 /**
- * Creates a historical log about the upgrade. If file does not exist an attempt
- * will be made to create it.
+ * Creates a historical log about the upgrade.
+ * <br>
+ * If file does not exist an attempt will be made to create it.
  */
 class UpgradeLog
 {
   private static File logFile;
-  static final String UPGRADELOGNAME = "upgrade.log";
+  private static final String UPGRADE_LOG_NAME = "upgrade.log";
 
   static void createLogFile()
   {
     if (logFile == null)
     {
-      logFile = Paths.get(UpgradeUtils.getInstancePath(), Installation.LOGS_PATH_RELATIVE, UPGRADELOGNAME).toFile();
+      logFile = Paths.get(UpgradeUtils.getInstancePath(), Installation.LOGS_PATH_RELATIVE, UPGRADE_LOG_NAME).toFile();
     }
   }
 
-  /**
-   * Returns the print stream of the current logger.
-   *
-   * @return the print stream of the current logger.
-   * @throws ClientException
-   *           If the file defined by the logger is not found or invalid.
-   */
   static PrintStream getPrintStream() throws ClientException
   {
     try
@@ -60,8 +54,7 @@
     }
     catch (FileNotFoundException e)
     {
-      throw new ClientException(ReturnCode.ERROR_UNEXPECTED, ERR_UPGRADE_INVALID_LOG_FILE.get(e
-          .getMessage()));
+      throw new ClientException(ReturnCode.ERROR_UNEXPECTED, ERR_UPGRADE_INVALID_LOG_FILE.get(e.getMessage()));
     }
   }
 

--
Gitblit v1.10.0