From 3986f99a9ac4c9bf3352a859d2516b0cc5bbc688 Mon Sep 17 00:00:00 2001
From: Ludovic Poitou <ludovic.poitou@forgerock.com>
Date: Tue, 03 Jan 2012 15:39:59 +0000
Subject: [PATCH] Fix minor issues and optimizations suggested by FindBugs and NetBeans.
---
opends/src/server/org/opends/server/tools/StopWindowsService.java | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/opends/src/server/org/opends/server/tools/StopWindowsService.java b/opends/src/server/org/opends/server/tools/StopWindowsService.java
index e3ba2e1..f6b4c4b 100644
--- a/opends/src/server/org/opends/server/tools/StopWindowsService.java
+++ b/opends/src/server/org/opends/server/tools/StopWindowsService.java
@@ -23,6 +23,7 @@
*
*
* Copyright 2008-2009 Sun Microsystems, Inc.
+ * Portions Copyright 2012 ForgeRock AS
*/
package org.opends.server.tools;
@@ -48,19 +49,19 @@
/**
* The service was successfully stopped.
*/
- public static int SERVICE_STOP_SUCCESSFUL = 0;
+ public static final int SERVICE_STOP_SUCCESSFUL = 0;
/**
* The service could not be found.
*/
- public static int SERVICE_NOT_FOUND = 1;
+ public static final int SERVICE_NOT_FOUND = 1;
/**
* The service was already stopped.
*/
- public static int SERVICE_ALREADY_STOPPED = 2;
+ public static final int SERVICE_ALREADY_STOPPED = 2;
/**
* The service could not be stopped.
*/
- public static int SERVICE_STOP_ERROR = 3;
+ public static final int SERVICE_STOP_ERROR = 3;
/**
* Invokes the net stop on the service corresponding to this server.
--
Gitblit v1.10.0