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/quicksetup/Launcher.java |   27 ++++++++++-----------------
 1 files changed, 10 insertions(+), 17 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/quicksetup/Launcher.java b/opendj-server-legacy/src/main/java/org/opends/quicksetup/Launcher.java
index 6920e0f..391bf7b 100644
--- a/opendj-server-legacy/src/main/java/org/opends/quicksetup/Launcher.java
+++ b/opendj-server-legacy/src/main/java/org/opends/quicksetup/Launcher.java
@@ -75,9 +75,8 @@
   public abstract ArgumentParser getArgumentParser();
 
   /**
-   * Indicates whether or not the launcher should print a usage
-   * statement based on the content of the arguments passed into
-   * the constructor.
+   * Indicates whether the launcher should print a usage statement
+   * based on the content of the arguments passed into the constructor.
    * @return boolean where true indicates usage should be printed
    */
   protected boolean shouldPrintUsage() {
@@ -94,9 +93,8 @@
   }
 
   /**
-   * Indicates whether or not the launcher should print a usage
-   * statement based on the content of the arguments passed into
-   * the constructor.
+   * Indicates whether the launcher should print a usage statement
+   * based on the content of the arguments passed into the constructor.
    * @return boolean where true indicates usage should be printed
    */
   protected boolean isQuiet() {
@@ -113,9 +111,8 @@
   }
 
   /**
-   * Indicates whether or not the launcher should print a version
-   * statement based on the content of the arguments passed into
-   * the constructor.
+   * Indicates whether the launcher should print a version statement
+   * based on the content of the arguments passed into the constructor.
    * @return boolean where true indicates version should be printed
    */
   protected boolean shouldPrintVersion() {
@@ -191,6 +188,7 @@
       { -1 };
     Thread t = new Thread(new Runnable()
     {
+      @Override
       public void run()
       {
         try
@@ -234,8 +232,7 @@
     }
     catch (InterruptedException ie)
     {
-      /* An error occurred, so the return value will be -1.  We got nothing to
-      do with this exception. */
+      /* An error occurred, so the return value will be -1. We got nothing to do with this exception. */
     }
     System.setErr(printStream);
     return returnValue[0];
@@ -276,9 +273,7 @@
     return returnValue.getReturnCode();
   }
 
-  /**
-   * Prints the version statement to standard output terminal.
-   */
+  /** Prints the version statement to standard output terminal. */
   protected void printVersion()
   {
     System.out.print(PRINTABLE_VERSION_STRING);
@@ -324,9 +319,7 @@
   /** Called if launching of the GUI failed. */
   protected abstract void guiLaunchFailed();
 
-  /**
-   * The main method which is called by the command lines.
-   */
+  /** The main method which is called by the command lines. */
   public void launch() {
     if (shouldPrintVersion()) {
       ArgumentParser parser = getArgumentParser();

--
Gitblit v1.10.0