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/jeb/ID2Entry.java | 30 +++++++-----------------------
1 files changed, 7 insertions(+), 23 deletions(-)
diff --git a/opendj3-server-dev/src/server/org/opends/server/backends/jeb/ID2Entry.java b/opendj3-server-dev/src/server/org/opends/server/backends/jeb/ID2Entry.java
index 95fa0da..a594cb9 100644
--- a/opendj3-server-dev/src/server/org/opends/server/backends/jeb/ID2Entry.java
+++ b/opendj3-server-dev/src/server/org/opends/server/backends/jeb/ID2Entry.java
@@ -22,10 +22,16 @@
*
*
* Copyright 2006-2010 Sun Microsystems, Inc.
- * Portions Copyright 2012-2014 ForgeRock AS.
+ * Portions Copyright 2012-2015 ForgeRock AS.
*/
package org.opends.server.backends.jeb;
+import static com.sleepycat.je.OperationStatus.*;
+
+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;
@@ -47,12 +53,6 @@
import com.sleepycat.je.*;
-import static com.sleepycat.je.OperationStatus.*;
-
-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,22 +370,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 data The data value containing a pre-formatted LDAP entry.
- * @return true if the entry was written, false if it was not.
- * @throws DatabaseException If an error occurs in the JE database.
- */
- @Override
- public OperationStatus put(Transaction txn, DatabaseEntry key, DatabaseEntry data)
- throws DatabaseException
- {
- return super.put(txn, key, data);
- }
-
- /**
* Remove a record from the entry database.
*
* @param txn The database transaction or null if none.
--
Gitblit v1.10.0