From 974d84fec523fb2ab9592c78683abec2a34e5ada Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Fri, 23 Jan 2015 09:59:42 +0000
Subject: [PATCH] Code cleanup: - reduced methods visibility - removed unnecessary method overloading

---
 opendj3-server-dev/src/server/org/opends/server/backends/pluggable/ID2Entry.java |   26 ++++++--------------------
 1 files changed, 6 insertions(+), 20 deletions(-)

diff --git a/opendj3-server-dev/src/server/org/opends/server/backends/pluggable/ID2Entry.java b/opendj3-server-dev/src/server/org/opends/server/backends/pluggable/ID2Entry.java
index f2a7fba..361ef01 100644
--- a/opendj3-server-dev/src/server/org/opends/server/backends/pluggable/ID2Entry.java
+++ b/opendj3-server-dev/src/server/org/opends/server/backends/pluggable/ID2Entry.java
@@ -22,10 +22,14 @@
  *
  *
  *      Copyright 2006-2010 Sun Microsystems, Inc.
- *      Portions Copyright 2012-2014 ForgeRock AS.
+ *      Portions Copyright 2012-2015 ForgeRock AS.
  */
 package org.opends.server.backends.pluggable;
 
+import static org.forgerock.util.Utils.*;
+import static org.opends.messages.JebMessages.*;
+import static org.opends.server.core.DirectoryServer.*;
+
 import java.io.IOException;
 import java.io.OutputStream;
 import java.util.zip.DataFormatException;
@@ -36,7 +40,6 @@
 import org.forgerock.opendj.io.ASN1;
 import org.forgerock.opendj.io.ASN1Reader;
 import org.forgerock.opendj.io.ASN1Writer;
-import org.forgerock.opendj.ldap.ByteSequence;
 import org.forgerock.opendj.ldap.ByteString;
 import org.forgerock.opendj.ldap.ByteStringBuilder;
 import org.forgerock.opendj.ldap.DecodeException;
@@ -51,10 +54,6 @@
 import org.opends.server.types.Entry;
 import org.opends.server.types.LDAPException;
 
-import static org.forgerock.util.Utils.*;
-import static org.opends.messages.JebMessages.*;
-import static org.opends.server.core.DirectoryServer.*;
-
 /**
  * Represents the database containing the LDAP entries. The database key is
  * the entry ID and the value is the entry contents.
@@ -370,20 +369,6 @@
   }
 
   /**
-   * Write a pre-formatted record into the entry database.
-   *
-   * @param txn The database transaction or null if none.
-   * @param key The key containing a pre-formatted entry ID.
-   * @param value The data value containing a pre-formatted LDAP entry.
-   * @throws StorageRuntimeException If an error occurs in the JE database.
-   */
-  @Override
-  public void put(WriteableStorage txn, ByteSequence key, ByteSequence value) throws StorageRuntimeException
-  {
-    super.put(txn, key, value);
-  }
-
-  /**
    * Remove a record from the entry database.
    *
    * @param txn The database transaction or null if none.
@@ -401,6 +386,7 @@
    *
    * @param txn The database transaction or null if none.
    * @param id The desired entry ID which forms the key.
+   * @param isRMW whether the read operation is part of a larger read-modify-write operation
    * @return The requested entry, or null if there is no such record.
    * @throws DirectoryException If a problem occurs while getting the entry.
    * @throws StorageRuntimeException If an error occurs in the JE database.

--
Gitblit v1.10.0