From 369d439a72b19cd7f95aaae555b180cd4f0eaedd Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Tue, 30 Apr 2013 07:50:36 +0000
Subject: [PATCH] Made code more generic: Used Map instead of HashMap in method signatures.
---
opends/src/server/org/opends/server/replication/plugin/AttrHistoricalSingle.java | 19 ++++++++++++-------
1 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/opends/src/server/org/opends/server/replication/plugin/AttrHistoricalSingle.java b/opends/src/server/org/opends/server/replication/plugin/AttrHistoricalSingle.java
index debaef9..487592e 100644
--- a/opends/src/server/org/opends/server/replication/plugin/AttrHistoricalSingle.java
+++ b/opends/src/server/org/opends/server/replication/plugin/AttrHistoricalSingle.java
@@ -29,6 +29,7 @@
import java.util.HashMap;
import java.util.Iterator;
+import java.util.Map;
import org.opends.server.replication.common.ChangeNumber;
import org.opends.server.types.Attribute;
@@ -48,13 +49,17 @@
*/
public class AttrHistoricalSingle extends AttrHistorical
{
- private ChangeNumber deleteTime = null; // last time when the attribute was
- // deleted
- private ChangeNumber addTime = null; // last time when a value was added
- private AttributeValue value = null; // last added value
+ /** Last time when the attribute was deleted */
+ private ChangeNumber deleteTime = null;
+ /** Last time when a value was added */
+ private ChangeNumber addTime = null;
+ /** Last added value */
+ private AttributeValue value = null;
- // last operation applied. This is only used for multiple mods on the same
- // single valued attribute in the same modification.
+ /**
+ * last operation applied. This is only used for multiple mods on the same
+ * single valued attribute in the same modification.
+ */
private HistAttrModificationKey lastMod = null;
/**
@@ -70,7 +75,7 @@
* {@inheritDoc}
*/
@Override
- public HashMap<AttrValueHistorical,AttrValueHistorical> getValuesHistorical()
+ public Map<AttrValueHistorical, AttrValueHistorical> getValuesHistorical()
{
if (addTime == null)
{
--
Gitblit v1.10.0