From 250c9bdd3c13d06682fd9f06f11ff2e426ac353a Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Tue, 29 Mar 2016 10:16:14 +0000
Subject: [PATCH] Prep work for OPENDJ-2803 Migrate Attribute

---
 opendj-server-legacy/src/main/java/org/opends/server/util/LDIFReader.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/util/LDIFReader.java b/opendj-server-legacy/src/main/java/org/opends/server/util/LDIFReader.java
index b4f5af2..61ba513 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/util/LDIFReader.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/util/LDIFReader.java
@@ -824,9 +824,9 @@
       }
 
        //The attribute is not being ignored so check for binary option.
-      if(checkSchema
+      if (checkSchema
           && !attrType.getSyntax().isBEREncodingRequired()
-          && attribute.hasOption("binary"))
+          && attribute.getAttributeDescription().hasOption("binary"))
       {
         LocalizableMessage message = ERR_LDIF_INVALID_ATTR_OPTION.get(
           entryDN, lastEntryLineNumber, attrName);
@@ -1663,7 +1663,7 @@
     for (int j = 0; j < attrList.size(); j++)
     {
       Attribute a = attrList.get(j);
-      if (a.hasOptions())
+      if (a.getAttributeDescription().hasOptions())
       {
         continue;
       }

--
Gitblit v1.10.0