From d0e8efc7290e815666b026a2d4ab44ab49d34ff1 Mon Sep 17 00:00:00 2001
From: Ludovic Poitou <ludovic.poitou@forgerock.com>
Date: Wed, 26 Jun 2013 12:28:53 +0000
Subject: [PATCH] Minor code & comment cleanup in the controlpanel code.

---
 opends/src/guitools/org/opends/guitools/controlpanel/ControlPanelLauncher.java |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/opends/src/guitools/org/opends/guitools/controlpanel/ControlPanelLauncher.java b/opends/src/guitools/org/opends/guitools/controlpanel/ControlPanelLauncher.java
index a3f1be8..8678d74 100644
--- a/opends/src/guitools/org/opends/guitools/controlpanel/ControlPanelLauncher.java
+++ b/opends/src/guitools/org/opends/guitools/controlpanel/ControlPanelLauncher.java
@@ -60,7 +60,7 @@
  */
 public class ControlPanelLauncher
 {
-  static private ControlPanelArgumentParser argParser;
+  static private ControlPanelArgumentParser  argParser;
 
   /** Prefix for log files. */
   static public final String LOG_FILE_PREFIX = "opendj-control-panel-";
@@ -159,7 +159,7 @@
    * worked (and the splash screen was displayed) we will never get out of it
    * (we will call a System.exit() when we close the graphical status dialog).
    *
-   * @params String[] args the arguments used to call the
+   * @param  args the arguments used to call the
    *         ControlPanelSplashScreen main method.
    * @return 0 if everything worked fine, or 1 if we could not display properly
    *         the ControlPanelSplashScreen.
@@ -194,9 +194,8 @@
             while (t != null)
             {
               StackTraceElement[] stack = t.getStackTrace();
-              for (int i = 0; i < stack.length; i++)
-              {
-                buf.append(stack[i].toString()+"\n");
+              for (StackTraceElement aStack : stack) {
+                buf.append(aStack.toString()).append("\n");
               }
 
               t = t.getCause();

--
Gitblit v1.10.0