From 30370aa1fc4d363f07023059f330e9a1ec9f2313 Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Thu, 04 Feb 2016 16:43:42 +0000
Subject: [PATCH] Removed Attribute.getAttributeType()
---
opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/EntryHistorical.java | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/EntryHistorical.java b/opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/EntryHistorical.java
index 980a537..181af27 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/EntryHistorical.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/EntryHistorical.java
@@ -241,7 +241,7 @@
// to the current modifications of the operation
mods.add(new Modification(ModificationType.REPLACE, attr));
// - update the already modified entry
- modifiedEntry.removeAttribute(attr.getAttributeType());
+ modifiedEntry.removeAttribute(attr.getAttributeDescription().getAttributeType());
modifiedEntry.addAttribute(attr, null);
}
@@ -319,7 +319,7 @@
AttrHistorical attrHist = attributesHistorical.get(attrDesc);
if (attrHist == null)
{
- attrHist = AttrHistorical.createAttributeHistorical(modAttr.getAttributeType());
+ attrHist = AttrHistorical.createAttributeHistorical(modAttr.getAttributeDescription().getAttributeType());
attributesHistorical.put(attrDesc, attrHist);
}
return attrHist;
@@ -714,7 +714,7 @@
*/
public static boolean isHistoricalAttribute(Attribute attr)
{
- AttributeType attrType = attr.getAttributeType();
+ AttributeType attrType = attr.getAttributeDescription().getAttributeType();
return HISTORICAL_ATTRIBUTE_NAME.equals(attrType.getNameOrOID());
}
--
Gitblit v1.10.0