From 310df200f78f7d98cc52e4ab97d8a5feb744fa52 Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Thu, 28 Apr 2016 09:04:35 +0000
Subject: [PATCH] UCDetector and AutoRefactor code cleanup

---
 opendj-server-legacy/src/main/java/org/opends/server/tools/StopWindowsService.java |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/tools/StopWindowsService.java b/opendj-server-legacy/src/main/java/org/opends/server/tools/StopWindowsService.java
index d385e07..6a1b783 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/tools/StopWindowsService.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/tools/StopWindowsService.java
@@ -12,14 +12,15 @@
  * information: "Portions Copyright [year] [name of copyright owner]".
  *
  * Copyright 2008-2009 Sun Microsystems, Inc.
- * Portions Copyright 2012-2014 ForgeRock AS.
+ * Portions Copyright 2012-2016 ForgeRock AS.
  */
 package org.opends.server.tools;
-import static org.opends.messages.ToolMessages.*;
 
 import static com.forgerock.opendj.cli.Utils.*;
 import static com.forgerock.opendj.util.OperatingSystem.*;
 
+import static org.opends.messages.ToolMessages.*;
+
 import java.io.OutputStream;
 import java.io.PrintStream;
 
@@ -34,11 +35,11 @@
 public class StopWindowsService
 {
   /** The service was successfully stopped. */
-  public static final int SERVICE_STOP_SUCCESSFUL = 0;
+  private static final int SERVICE_STOP_SUCCESSFUL = 0;
   /** The service could not be found. */
-  public static final int SERVICE_NOT_FOUND = 1;
+  private static final int SERVICE_NOT_FOUND = 1;
   /** The service could not be stopped. */
-  public static final int SERVICE_STOP_ERROR = 3;
+  private static final int SERVICE_STOP_ERROR = 3;
 
   /**
    * Invokes the net stop on the service corresponding to this server.
@@ -62,7 +63,7 @@
    * @param errStream
    *          The stream to write error messages.
    */
-  public static int stopWindowsService(OutputStream outStream, OutputStream errStream)
+  private static int stopWindowsService(OutputStream outStream, OutputStream errStream)
   {
     NullOutputStream.wrapOrNullStream(outStream);
     PrintStream err = NullOutputStream.wrapOrNullStream(errStream);
@@ -116,4 +117,3 @@
     }
   }
 }
-

--
Gitblit v1.10.0