From 0cf88d8e7998442eb6a0c91f8a3c0e9646b5c1a0 Mon Sep 17 00:00:00 2001
From: Valery Kharseko <vharseko@3a-systems.ru>
Date: Wed, 29 Jul 2026 14:20:11 +0000
Subject: [PATCH] Remove containers whose contents are never read (java/unused-container CodeQL alerts) (#784)

---
 opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/NewIndexPanel.java |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/NewIndexPanel.java b/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/NewIndexPanel.java
index 9261d76..a7f3be9 100644
--- a/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/NewIndexPanel.java
+++ b/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/NewIndexPanel.java
@@ -13,6 +13,7 @@
  *
  * Copyright 2008-2009 Sun Microsystems, Inc.
  * Portions Copyright 2014-2016 ForgeRock AS.
+ * Portions Copyright 2026 3A Systems, LLC.
  */
 package org.opends.guitools.controlpanel.ui;
 
@@ -120,7 +121,6 @@
       BackendDescriptor backend = getBackendByID(backendName.getText());
 
       TreeSet<String> standardAttrNames = new TreeSet<>();
-      TreeSet<String> configurationAttrNames = new TreeSet<>();
       TreeSet<String> customAttrNames = new TreeSet<>();
       for (AttributeType attr : schema.getAttributeTypes())
       {
@@ -131,12 +131,9 @@
           {
             standardAttrNames.add(name);
           }
-          else if (Utilities.isConfiguration(attr))
+          else if (!Utilities.isConfiguration(attr))
           {
-            configurationAttrNames.add(name);
-          }
-          else
-          {
+            // Configuration attributes are not offered for indexing.
             customAttrNames.add(name);
           }
         }

--
Gitblit v1.10.0