From 14008013116d3a95440c6d33c1509ed1bb8e6bf3 Mon Sep 17 00:00:00 2001
From: Gaetan Boismal <gaetan.boismal@forgerock.com>
Date: Thu, 11 Feb 2016 14:17:04 +0000
Subject: [PATCH] OPENDJSDK-42 Code cleanup
---
opendj-server-legacy/src/main/java/org/opends/server/tools/LDAPDelete.java | 65 ++++++++++++++++----------------
1 files changed, 33 insertions(+), 32 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/tools/LDAPDelete.java b/opendj-server-legacy/src/main/java/org/opends/server/tools/LDAPDelete.java
index 2925fba..c5f9502 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/tools/LDAPDelete.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/tools/LDAPDelete.java
@@ -22,7 +22,7 @@
*
*
* Copyright 2006-2010 Sun Microsystems, Inc.
- * Portions Copyright 2012-2015 ForgeRock AS.
+ * Portions Copyright 2012-2016 ForgeRock AS.
*/
package org.opends.server.tools;
@@ -41,6 +41,7 @@
import java.io.PrintStream;
import java.io.Reader;
import java.util.ArrayList;
+import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;
import org.forgerock.i18n.LocalizableMessage;
@@ -117,7 +118,7 @@
* @throws LDAPException If the Directory Server returns an error response.
*/
public void readAndExecute(LDAPConnection connection,
- ArrayList<String> lines,
+ List<String> lines,
LDAPDeleteOptions deleteOptions)
throws IOException, LDAPException
{
@@ -286,38 +287,38 @@
LDAPDeleteOptions deleteOptions = new LDAPDeleteOptions();
LDAPConnection connection = null;
- BooleanArgument continueOnError = null;
- BooleanArgument deleteSubtree = null;
- BooleanArgument noop = null;
- BooleanArgument saslExternal = null;
- BooleanArgument showUsage = null;
- BooleanArgument startTLS = null;
- BooleanArgument trustAll = null;
- BooleanArgument useSSL = null;
- BooleanArgument verbose = null;
- FileBasedArgument bindPasswordFile = null;
- FileBasedArgument keyStorePasswordFile = null;
- FileBasedArgument trustStorePasswordFile = null;
- IntegerArgument port = null;
- IntegerArgument version = null;
- StringArgument bindDN = null;
- StringArgument bindPassword = null;
- StringArgument certNickname = null;
- StringArgument controlStr = null;
- StringArgument encodingStr = null;
- StringArgument filename = null;
- StringArgument hostName = null;
- StringArgument keyStorePath = null;
- StringArgument keyStorePassword = null;
- StringArgument saslOptions = null;
- StringArgument trustStorePath = null;
- StringArgument trustStorePassword = null;
- IntegerArgument connectTimeout = null;
- StringArgument propertiesFileArgument = null;
- BooleanArgument noPropertiesFileArgument = null;
+ final BooleanArgument continueOnError;
+ final BooleanArgument deleteSubtree;
+ final BooleanArgument noop;
+ final BooleanArgument saslExternal;
+ final BooleanArgument showUsage;
+ final BooleanArgument startTLS;
+ final BooleanArgument trustAll;
+ final BooleanArgument useSSL;
+ final BooleanArgument verbose;
+ final FileBasedArgument bindPasswordFile;
+ final FileBasedArgument keyStorePasswordFile;
+ final FileBasedArgument trustStorePasswordFile;
+ final IntegerArgument port;
+ final IntegerArgument version;
+ final StringArgument bindDN;
+ final StringArgument bindPassword;
+ final StringArgument certNickname;
+ final StringArgument controlStr;
+ final StringArgument encodingStr;
+ final StringArgument filename;
+ final StringArgument hostName;
+ final StringArgument keyStorePath;
+ final StringArgument keyStorePassword;
+ final StringArgument saslOptions;
+ final StringArgument trustStorePath;
+ final StringArgument trustStorePassword;
+ final IntegerArgument connectTimeout;
+ final StringArgument propertiesFileArgument;
+ final BooleanArgument noPropertiesFileArgument;
Reader rdr = null;
- ArrayList<String> dnStrings = new ArrayList<>();
+ List<String> dnStrings = new ArrayList<>();
// Create the command-line argument parser for use with this program.
LocalizableMessage toolDescription = INFO_LDAPDELETE_TOOL_DESCRIPTION.get();
--
Gitblit v1.10.0