From 4f6891a8bd4d017a41b5f75748398ff59787501c Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Thu, 15 Oct 2015 19:38:35 +0000
Subject: [PATCH] Renamed DirectoryServer.getAttributeType() to DirectoryServer.getAttributeTypeOrNull().
---
opendj-server-legacy/src/main/java/org/opends/server/config/ConfigEntry.java | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/config/ConfigEntry.java b/opendj-server-legacy/src/main/java/org/opends/server/config/ConfigEntry.java
index f6177df..1506225 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/config/ConfigEntry.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/config/ConfigEntry.java
@@ -214,12 +214,10 @@
public void putConfigAttribute(ConfigAttribute attribute)
{
String name = attribute.getName();
- AttributeType attrType =
- DirectoryServer.getAttributeType(name.toLowerCase());
+ AttributeType attrType = DirectoryServer.getAttributeTypeOrNull(name.toLowerCase());
if (attrType == null)
{
- attrType =
- DirectoryServer.getDefaultAttributeType(name, attribute.getSyntax());
+ attrType = DirectoryServer.getDefaultAttributeType(name, attribute.getSyntax());
}
List<Attribute> attrs = new ArrayList<>(2);
--
Gitblit v1.10.0