From 27053769cfc943bda17d6107368e8f1c9305f6bb Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Fri, 09 Sep 2016 13:21:38 +0000
Subject: [PATCH] AttrHistorical code cleanup
---
opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/AttrHistoricalSingle.java | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/AttrHistoricalSingle.java b/opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/AttrHistoricalSingle.java
index 9543edb..4e3e06c 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/AttrHistoricalSingle.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/AttrHistoricalSingle.java
@@ -38,10 +38,10 @@
*/
public class AttrHistoricalSingle extends AttrHistorical
{
+ /** Attribute type of this historical value */
+ private AttributeType attributeType;
/** Last added value. */
private ByteString value;
- /** Attribute type for this historical value */
- private AttributeType attributeType;
/** Last time when a value was added. */
private CSN addTime;
/** Last time when the attribute was deleted. */
@@ -275,9 +275,12 @@
}
@Override
- public void assign(HistAttrModificationKey histKey, AttributeType attrType, ByteString value, CSN csn)
+ public void assign(HistoricalAttributeValue histVal)
{
- switch (histKey)
+ final ByteString value = histVal.getAttributeValue();
+ final CSN csn = histVal.getCSN();
+
+ switch (histVal.getHistKey())
{
case ADD:
this.addTime = csn;
--
Gitblit v1.10.0