From 69bcc5da5dafd4e5c4af9478f8db2de0fd5af413 Mon Sep 17 00:00:00 2001
From: Violette Roche-Montane <violette.roche-montane@forgerock.com>
Date: Tue, 06 May 2014 09:17:27 +0000
Subject: [PATCH] OPENDJ-1303 "opendj-cli" - Removed && replaced StaticUtils.filterExitCode by com.forgerock.opendj.cli.Utils.filterExitCode; - Removed SetupUtils.getDefaultJMXPort and replaced it by CliConstants.DEFAULT_JMX_PORT. - Removed && replaced Utilities.OBFUSCATED_VALUE by com.forgerock.opendj.cli.Utils.OBFUSCATED_VALUE; - Removed && replaced Utils.getThrowableMsg by com.forgerock.opendj.cli.Utils.getThrowableMsg;
---
opendj3-server-dev/src/server/org/opends/server/util/StaticUtils.java | 29 -----------------------------
1 files changed, 0 insertions(+), 29 deletions(-)
diff --git a/opendj3-server-dev/src/server/org/opends/server/util/StaticUtils.java b/opendj3-server-dev/src/server/org/opends/server/util/StaticUtils.java
index 687d098..97e619d 100644
--- a/opendj3-server-dev/src/server/org/opends/server/util/StaticUtils.java
+++ b/opendj3-server-dev/src/server/org/opends/server/util/StaticUtils.java
@@ -3746,35 +3746,6 @@
}
/**
- * Filters the provided value to ensure that it is appropriate for use as an
- * exit code. Exit code values are generally only allowed to be between 0 and
- * 255, so any value outside of this range will be converted to 255, which is
- * the typical exit code used to indicate an overflow value.
- *
- * @param exitCode The exit code value to be processed.
- *
- * @return An integer value between 0 and 255, inclusive. If the provided
- * exit code was already between 0 and 255, then the original value
- * will be returned. If the provided value was out of this range,
- * then 255 will be returned.
- */
- public static int filterExitCode(int exitCode)
- {
- if (exitCode < 0)
- {
- return 255;
- }
- else if (exitCode > 255)
- {
- return 255;
- }
- else
- {
- return exitCode;
- }
- }
-
- /**
* Checks that no more that one of a set of arguments is present. This
* utility should be used after argument parser has parsed a set of
* arguments.
--
Gitblit v1.10.0