From d6b4863175cbac9c771441d8d50b75774044c07d Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 18 Apr 2016 15:57:03 +0000
Subject: [PATCH] Code cleanup
---
opendj-server-legacy/src/main/java/org/opends/server/tools/VerifyIndex.java | 14 +++++---------
1 files changed, 5 insertions(+), 9 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/tools/VerifyIndex.java b/opendj-server-legacy/src/main/java/org/opends/server/tools/VerifyIndex.java
index 02edd04..8637f90 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/tools/VerifyIndex.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/tools/VerifyIndex.java
@@ -17,8 +17,8 @@
package org.opends.server.tools;
import static com.forgerock.opendj.cli.ArgumentConstants.*;
-import static com.forgerock.opendj.cli.Utils.*;
import static com.forgerock.opendj.cli.CommonArguments.*;
+import static com.forgerock.opendj.cli.Utils.*;
import static org.opends.messages.ToolMessages.*;
import static org.opends.server.util.StaticUtils.*;
@@ -63,7 +63,7 @@
*/
public static void main(String[] args)
{
- int retCode = mainVerifyIndex(args, true, System.out, System.err);
+ int retCode = mainVerifyIndex(args, true, System.err);
if(retCode != 0)
{
System.exit(filterExitCode(retCode));
@@ -76,15 +76,11 @@
* @param args The command-line arguments provided to this
* program.
* @param initializeServer Indicates whether to initialize the server.
- * @param outStream The output stream to use for standard output, or
- * {@code null} if standard output is not needed.
* @param errStream The output stream to use for standard error, or
* {@code null} if standard error is not needed.
- *
* @return The error code.
*/
public static int mainVerifyIndex(String[] args, boolean initializeServer,
- OutputStream outStream,
OutputStream errStream)
{
PrintStream err = NullOutputStream.wrapOrNullStream(errStream);
@@ -219,9 +215,9 @@
// Get information about the backends defined in the server. Iterate
// through them, finding the one backend to be verified.
- ArrayList<Backend> backendList = new ArrayList<>();
- ArrayList<BackendCfg> entryList = new ArrayList<>();
- ArrayList<List<DN>> dnList = new ArrayList<>();
+ List<Backend<?>> backendList = new ArrayList<>();
+ List<BackendCfg> entryList = new ArrayList<>();
+ List<List<DN>> dnList = new ArrayList<>();
BackendToolUtils.getBackends(backendList, entryList, dnList);
Backend<?> backend = null;
--
Gitblit v1.10.0