From ed8da8f6a5f83b4322bc4fb86fcb9adbb02c8d88 Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 04 Apr 2016 13:38:35 +0000
Subject: [PATCH] code cleanup in backends
---
opendj-server-legacy/src/main/java/org/opends/server/backends/SchemaBackend.java | 15 +++++++--------
1 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/backends/SchemaBackend.java b/opendj-server-legacy/src/main/java/org/opends/server/backends/SchemaBackend.java
index a691277..6357e4b 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/backends/SchemaBackend.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/backends/SchemaBackend.java
@@ -456,19 +456,18 @@
private boolean isSchemaConfigAttribute(Attribute attribute)
{
AttributeType attrType = attribute.getAttributeDescription().getAttributeType();
- return attrType.hasName(ATTR_SCHEMA_ENTRY_DN.toLowerCase()) ||
- attrType.hasName(ATTR_BACKEND_ENABLED.toLowerCase()) ||
- attrType.hasName(ATTR_BACKEND_CLASS.toLowerCase()) ||
- attrType.hasName(ATTR_BACKEND_ID.toLowerCase()) ||
- attrType.hasName(ATTR_BACKEND_BASE_DN.toLowerCase()) ||
- attrType.hasName(ATTR_BACKEND_WRITABILITY_MODE.toLowerCase()) ||
- attrType.hasName(ATTR_SCHEMA_SHOW_ALL_ATTRIBUTES.toLowerCase()) ||
+ return attrType.hasName(ATTR_SCHEMA_ENTRY_DN) ||
+ attrType.hasName(ATTR_BACKEND_ENABLED) ||
+ attrType.hasName(ATTR_BACKEND_CLASS) ||
+ attrType.hasName(ATTR_BACKEND_ID) ||
+ attrType.hasName(ATTR_BACKEND_BASE_DN) ||
+ attrType.hasName(ATTR_BACKEND_WRITABILITY_MODE) ||
+ attrType.hasName(ATTR_SCHEMA_SHOW_ALL_ATTRIBUTES) ||
attrType.hasName(ATTR_COMMON_NAME) ||
attrType.hasName(OP_ATTR_CREATORS_NAME_LC) ||
attrType.hasName(OP_ATTR_CREATE_TIMESTAMP_LC) ||
attrType.hasName(OP_ATTR_MODIFIERS_NAME_LC) ||
attrType.hasName(OP_ATTR_MODIFY_TIMESTAMP_LC);
-
}
@Override
--
Gitblit v1.10.0