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/authorization/dseecompat/EnumAuthMethod.java |   16 +++++-----------
 1 files changed, 5 insertions(+), 11 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/authorization/dseecompat/EnumAuthMethod.java b/opendj-server-legacy/src/main/java/org/opends/server/authorization/dseecompat/EnumAuthMethod.java
index c945c92..0b18e45 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/authorization/dseecompat/EnumAuthMethod.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/authorization/dseecompat/EnumAuthMethod.java
@@ -13,24 +13,18 @@
  *
  * Copyright 2008 Sun Microsystems, Inc.
  * Portions Copyright 2015-2016 ForgeRock AS.
+ * Portions Copyright 2026 3A Systems, LLC.
  */
 package org.opends.server.authorization.dseecompat;
 
 /** This class provides an enumeration of the allowed authmethod types. */
 enum EnumAuthMethod {
     /** The enumeration type when the bind rule has specified authentication of none. */
-    AUTHMETHOD_NONE          ("none"),
+    AUTHMETHOD_NONE,
     /** The enumeration type when the bind rule has specified authentication of simple. */
-    AUTHMETHOD_SIMPLE        ("simple"),
+    AUTHMETHOD_SIMPLE,
     /** The enumeration type when the bind rule has specified authentication of ssl client auth. */
-    AUTHMETHOD_SSL           ("ssl"),
+    AUTHMETHOD_SSL,
     /** The enumeration type when the bind rule has specified authentication of a sasl mechanism. */
-    AUTHMETHOD_SASL          ("sasl");
-
-    /**
-     * Creates a new enumeration type for this authmethod.
-     * @param authmethod The authemethod name.
-     */
-    EnumAuthMethod (String authmethod){
-    }
+    AUTHMETHOD_SASL;
 }

--
Gitblit v1.10.0