From 70e742ae6cd5e85059a1b8efec00c46d5c54a7f1 Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Thu, 28 Jan 2016 08:28:53 +0000
Subject: [PATCH] (PR-201) Do not call String.toLowerCase() or StaticUtils.toLowerCase() since Schema class now does it itself
---
opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/ViewEntryPanel.java | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/ViewEntryPanel.java b/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/ViewEntryPanel.java
index dcd9877..0ca1db6 100644
--- a/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/ViewEntryPanel.java
+++ b/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/ViewEntryPanel.java
@@ -570,17 +570,13 @@
*/
public static boolean isEditable(String attrName, Schema schema)
{
- boolean isEditable = false;
attrName = Utilities.getAttributeNameWithoutOptions(attrName);
- if (schema != null)
+ if (schema != null && schema.hasAttributeType(attrName))
{
- if (schema.hasAttributeType(attrName.toLowerCase()))
- {
- AttributeType attrType = schema.getAttributeType(attrName.toLowerCase());
- isEditable = !attrType.isNoUserModification();
- }
+ AttributeType attrType = schema.getAttributeType(attrName);
+ return !attrType.isNoUserModification();
}
- return isEditable;
+ return false;
}
/**
--
Gitblit v1.10.0