From 0b4d509011ee8f909711a31d9c1823d00bb368fd Mon Sep 17 00:00:00 2001
From: Violette Roche-Montane <violette.roche-montane@forgerock.com>
Date: Tue, 01 Apr 2014 09:07:24 +0000
Subject: [PATCH] Minor code cleanup
---
opendj-cli/src/main/java/com/forgerock/opendj/cli/CommonArguments.java | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/opendj-cli/src/main/java/com/forgerock/opendj/cli/CommonArguments.java b/opendj-cli/src/main/java/com/forgerock/opendj/cli/CommonArguments.java
index 72bf4f9..9e4a9a3 100644
--- a/opendj-cli/src/main/java/com/forgerock/opendj/cli/CommonArguments.java
+++ b/opendj-cli/src/main/java/com/forgerock/opendj/cli/CommonArguments.java
@@ -27,6 +27,7 @@
import static com.forgerock.opendj.cli.CliMessages.*;
import static com.forgerock.opendj.cli.ArgumentConstants.*;
+import static com.forgerock.opendj.cli.CliConstants.DEFAULT_LDAP_CONNECT_TIMEOUT;
import org.forgerock.i18n.LocalizableMessage;
@@ -400,16 +401,15 @@
/**
* Returns the "connectTimeout" integer argument.
*
- * @param defaultTimeout
- * The default timeout.
* @return The "connectTimeout" argument.
* @throws ArgumentException
* If there is a problem with any of the parameters used to create this argument.
*/
- public static IntegerArgument getConnectTimeOut(final int defaultTimeout) throws ArgumentException {
+ public static IntegerArgument getConnectTimeOut() throws ArgumentException {
final IntegerArgument connectTimeout = new IntegerArgument(OPTION_LONG_CONNECT_TIMEOUT, null,
- OPTION_LONG_CONNECT_TIMEOUT, false, false, true, INFO_TIMEOUT_PLACEHOLDER.get(), defaultTimeout, null,
- true, 0, false, Integer.MAX_VALUE, INFO_DESCRIPTION_CONNECTION_TIMEOUT.get());
+ OPTION_LONG_CONNECT_TIMEOUT, false, false, true, INFO_TIMEOUT_PLACEHOLDER.get(),
+ DEFAULT_LDAP_CONNECT_TIMEOUT, null, true, 0, false, Integer.MAX_VALUE,
+ INFO_DESCRIPTION_CONNECTION_TIMEOUT.get());
connectTimeout.setPropertyName(OPTION_LONG_CONNECT_TIMEOUT);
connectTimeout.setHidden(true);
return connectTimeout;
--
Gitblit v1.10.0