From bd8b80653a50e445f59cac7c1e80309dba23712e Mon Sep 17 00:00:00 2001
From: Valery Kharseko <vharseko@3a-systems.ru>
Date: Tue, 04 Aug 2026 08:28:21 +0000
Subject: [PATCH] Fix CodeQL note-severity alerts: dead parameters of private methods (#834)

---
 opendj-server-legacy/src/main/java/org/opends/server/tools/StopDS.java |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/tools/StopDS.java b/opendj-server-legacy/src/main/java/org/opends/server/tools/StopDS.java
index 01095ea..0e3552b 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/tools/StopDS.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/tools/StopDS.java
@@ -13,6 +13,7 @@
  *
  * Copyright 2006-2010 Sun Microsystems, Inc.
  * Portions Copyright 2011-2016 ForgeRock AS.
+ * Portions Copyright 2026 3A Systems, LLC.
  */
 package org.opends.server.tools;
 
@@ -371,7 +372,7 @@
 
     if (checkStoppability.isPresent())
     {
-      System.exit(checkStoppability(argParser, out, err));
+      System.exit(checkStoppability(argParser, out));
     }
 
     // If both a bind password and bind password file were provided, then return
@@ -640,12 +641,10 @@
    * on the different parameters passed.
    * @param argParser the ArgumentParser with the arguments already parsed.
    * @param out the print stream to use for standard output.
-   * @param err the print stream to use for standard error.
    * @return the error code that we return when we are checking the stoppability
    * of the server.
    */
-  private static int checkStoppability(ArgumentParser argParser,
-                                       PrintStream out, PrintStream err)
+  private static int checkStoppability(ArgumentParser argParser, PrintStream out)
   {
     int returnValue;
     boolean isServerRunning;

--
Gitblit v1.10.0