From 3d4c0acccda6e62b23f248d75c1cc6721fc20bdf Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Tue, 07 Jun 2016 13:51:21 +0000
Subject: [PATCH] OPENDJ-3037 inlined DirectoryServer.getAttributeType(String)

---
 opendj-server-legacy/src/main/java/org/opends/server/tasks/ExportTask.java |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/tasks/ExportTask.java b/opendj-server-legacy/src/main/java/org/opends/server/tasks/ExportTask.java
index b5ca9a0..77fc8c7 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/tasks/ExportTask.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/tasks/ExportTask.java
@@ -123,7 +123,7 @@
     }
 
     Entry taskEntry = getTaskEntry();
-    AttributeType typeWrapColumn = getAttributeType(ATTR_TASK_EXPORT_WRAP_COLUMN);
+    AttributeType typeWrapColumn = getSchema().getAttributeType(ATTR_TASK_EXPORT_WRAP_COLUMN);
 
     ldifFile = toString(taskEntry, ATTR_TASK_EXPORT_LDIF_FILE);
     File f = new File (ldifFile);
@@ -160,21 +160,21 @@
 
   private boolean toBoolean(Entry entry, boolean defaultValue, String attrName)
   {
-    final AttributeType attrType = getAttributeType(attrName);
+    final AttributeType attrType = getSchema().getAttributeType(attrName);
     final List<Attribute> attrs = entry.getAttribute(attrType);
     return TaskUtils.getBoolean(attrs, defaultValue);
   }
 
   private ArrayList<String> toListOfString(Entry entry, String attrName)
   {
-    final AttributeType attrType = getAttributeType(attrName);
+    final AttributeType attrType = getSchema().getAttributeType(attrName);
     final List<Attribute> attrs = entry.getAttribute(attrType);
     return TaskUtils.getMultiValueString(attrs);
   }
 
   private String toString(Entry entry, String attrName)
   {
-    final AttributeType attrType = getAttributeType(attrName);
+    final AttributeType attrType = getSchema().getAttributeType(attrName);
     final List<Attribute> attrs = entry.getAttribute(attrType);
     return TaskUtils.getSingleValueString(attrs);
   }
@@ -456,7 +456,7 @@
     HashSet<AttributeType> attributes = new HashSet<>();
     for (String attrName : attributeStrings)
     {
-      attributes.add(DirectoryServer.getAttributeType(attrName));
+      attributes.add(DirectoryServer.getSchema().getAttributeType(attrName));
     }
     return attributes;
   }

--
Gitblit v1.10.0