From 40c232bb1ea09338ddbc93f2be3db6b340575fba Mon Sep 17 00:00:00 2001
From: Nicolas Capponi <nicolas.capponi@forgerock.com>
Date: Fri, 01 Jul 2016 13:46:08 +0000
Subject: [PATCH] OPENDJ-3038 Remove CommonSchemaElements class and transform ServerSchemaElement to an utility class
---
opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/NewIndexPanel.java | 6 ++----
1 files changed, 2 insertions(+), 4 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 eeb96f3..64e97ec 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
@@ -52,7 +52,6 @@
import org.opends.guitools.controlpanel.event.ConfigurationChangeEvent;
import org.opends.guitools.controlpanel.task.Task;
import org.opends.guitools.controlpanel.util.Utilities;
-import org.opends.server.schema.ServerSchemaElement;
import org.opends.server.types.Schema;
/** Panel that appears when the user defines a new index. */
@@ -125,15 +124,14 @@
TreeSet<String> customAttrNames = new TreeSet<>();
for (AttributeType attr : schema.getAttributeTypes())
{
- ServerSchemaElement element = new ServerSchemaElement(attr);
String name = attr.getNameOrOID();
if (!indexExists(backend, name))
{
- if (Utilities.isStandard(element))
+ if (Utilities.isStandard(attr))
{
standardAttrNames.add(name);
}
- else if (Utilities.isConfiguration(element))
+ else if (Utilities.isConfiguration(attr))
{
configurationAttrNames.add(name);
}
--
Gitblit v1.10.0