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/util/cli/LDAPConnectionArgumentParser.java |   35 +++--------------------------------
 1 files changed, 3 insertions(+), 32 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/util/cli/LDAPConnectionArgumentParser.java b/opendj-server-legacy/src/main/java/org/opends/server/util/cli/LDAPConnectionArgumentParser.java
index 69ceff8..fd4aba3 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/util/cli/LDAPConnectionArgumentParser.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/util/cli/LDAPConnectionArgumentParser.java
@@ -16,10 +16,10 @@
  */
 package org.opends.server.util.cli;
 
-import static org.opends.messages.ToolMessages.*;
-
 import static com.forgerock.opendj.cli.Utils.*;
 
+import static org.opends.messages.ToolMessages.*;
+
 import java.io.PrintStream;
 import java.util.LinkedList;
 import java.util.Set;
@@ -52,7 +52,6 @@
  */
 public class LDAPConnectionArgumentParser extends ArgumentParser
 {
-
   private SecureConnectionCliArgs args;
 
   /**
@@ -305,34 +304,6 @@
    *          with which to connect
    * @param options
    *          with which to connect
-   * @param out
-   *          stream to write messages
-   * @param err
-   *          stream to write error messages
-   * @return LDAPConnection created by this class from parsed arguments
-   * @throws LDAPConnectionException
-   *           if there was a problem connecting to the server indicated by the
-   *           input arguments
-   */
-  public LDAPConnection connect(String host, int port, String bindDN, String bindPw, LDAPConnectionOptions options,
-      PrintStream out, PrintStream err) throws LDAPConnectionException
-  {
-    return connect(host, port, bindDN, bindPw, options, 0, out, err);
-  }
-
-  /**
-   * Creates a connection from information provided.
-   *
-   * @param host
-   *          of the server
-   * @param port
-   *          of the server
-   * @param bindDN
-   *          with which to connect
-   * @param bindPw
-   *          with which to connect
-   * @param options
-   *          with which to connect
    * @param timeout
    *          the timeout to establish the connection in milliseconds. Use
    *          {@code 0} to express no timeout
@@ -345,7 +316,7 @@
    *           if there was a problem connecting to the server indicated by the
    *           input arguments
    */
-  public LDAPConnection connect(String host, int port, String bindDN, String bindPw, LDAPConnectionOptions options,
+  private LDAPConnection connect(String host, int port, String bindDN, String bindPw, LDAPConnectionOptions options,
       int timeout, PrintStream out, PrintStream err) throws LDAPConnectionException
   {
     // Attempt to connect and authenticate to the Directory Server.

--
Gitblit v1.10.0