From 666f3a315c30738141341a4718381a730e344a96 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Mon, 26 Oct 2015 08:18:05 +0000
Subject: [PATCH] Minor code clean up: try-with-resources, etc.
---
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/ID2Count.java | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/ID2Count.java b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/ID2Count.java
index 172d8f8..68613d6 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/ID2Count.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/ID2Count.java
@@ -170,7 +170,7 @@
/**
* Get the counter value for the specified key
- * @param txn The transaction
+ * @param txn storage transaction
* @param entryID The entryID identifying to the counter
* @return Value of the counter. 0 if no counter is associated yet.
*/
@@ -181,7 +181,7 @@
cursor.positionToKeyOrNext(getKeyFromEntryID(entryID));
while (cursor.isDefined() && cursor.getKey().equals(entryID))
{
- counterValue += cursor.getValue().longValue();
+ counterValue += cursor.getValue();
cursor.next();
}
}
@@ -200,7 +200,7 @@
/**
* Get the total counter value. The total counter maintain the sum of all
* the counter contained in this tree.
- * @param txn The transaction
+ * @param txn storage transaction
* @return Sum of all the counter contained in this tree
*/
long getTotalCount(ReadableTransaction txn)
--
Gitblit v1.10.0