From c5740d7b39334af983957a9c284ddd792d598f6c Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Fri, 10 Jul 2015 15:13:20 +0000
Subject: [PATCH] Code cleanup

---
 opendj-server-legacy/src/main/java/org/opends/server/admin/ManagedObjectPath.java |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/admin/ManagedObjectPath.java b/opendj-server-legacy/src/main/java/org/opends/server/admin/ManagedObjectPath.java
index a20c57d..d0fdb04 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/admin/ManagedObjectPath.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/admin/ManagedObjectPath.java
@@ -150,8 +150,7 @@
 
       // Now add the single RDN representing the named instance.
       String type = profile.getRelationChildRDNType(r);
-      AttributeType atype = DirectoryServer.getAttributeType(
-          type.toLowerCase(), true);
+      AttributeType atype = DirectoryServer.getAttributeTypeOrDefault(type.toLowerCase());
       ByteString avalue = ByteString.valueOf(name);
       dn = dn.child(RDN.create(atype, avalue));
     }
@@ -168,8 +167,7 @@
 
       // Now add the single RDN representing the instance.
       String type = profile.getRelationChildRDNType(r);
-      AttributeType atype = DirectoryServer.getAttributeType(
-          type.toLowerCase(), true);
+      AttributeType atype = DirectoryServer.getAttributeTypeOrDefault(type.toLowerCase());
       ByteString avalue = ByteString.valueOf(d.getName());
       dn = dn.child(RDN.create(atype, avalue));
     }

--
Gitblit v1.10.0