From 763a75aeed1a7731ddb95b99496aa7c1bf206ed0 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Fri, 27 Feb 2015 00:31:10 +0000
Subject: [PATCH] OPENDJ-1855: Reformat and cleanup pluggable backend code: adjust visibility, findbugs, ucdetector, etc...
---
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/RootContainer.java | 24 +++++++-----------------
1 files changed, 7 insertions(+), 17 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/RootContainer.java b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/RootContainer.java
index d9e854a..7bee231 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/RootContainer.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/RootContainer.java
@@ -126,7 +126,7 @@
/** The backend to which this entry root container belongs. */
private final BackendImpl backend;
/** The backend configuration. */
- private PluggableBackendCfg config;
+ private final PluggableBackendCfg config;
/** The database environment monitor for this JE environment. */
private DatabaseEnvironmentMonitor monitor;
@@ -459,7 +459,7 @@
*
* @return The compressed schema manager for this backend.
*/
- public CompressedSchema getCompressedSchema()
+ CompressedSchema getCompressedSchema()
{
return compressedSchema;
}
@@ -470,7 +470,7 @@
*
* @return The DatabaseEnvironmentMonitor object.
*/
- public DatabaseEnvironmentMonitor getMonitorProvider()
+ DatabaseEnvironmentMonitor getMonitorProvider()
{
if (monitor == null)
{
@@ -573,7 +573,7 @@
*
* @return The set of DNs this root container stores.
*/
- public Set<DN> getBaseDNs()
+ Set<DN> getBaseDNs()
{
return entryContainers.keySet();
}
@@ -607,7 +607,7 @@
*
* @return The backend configuration used by this root container.
*/
- public PluggableBackendCfg getConfiguration()
+ PluggableBackendCfg getConfiguration()
{
return config;
}
@@ -619,7 +619,7 @@
* @throws StorageRuntimeException
* If an error occurs while retrieving the entry count.
*/
- public long getEntryCount() throws StorageRuntimeException
+ long getEntryCount() throws StorageRuntimeException
{
try
{
@@ -656,22 +656,12 @@
*
* @return The assigned entry ID.
*/
- public EntryID getNextEntryID()
+ EntryID getNextEntryID()
{
return new EntryID(nextid.getAndIncrement());
}
/**
- * Return the lowest entry ID assigned.
- *
- * @return The lowest entry ID assigned.
- */
- public Long getLowestEntryID()
- {
- return 1L;
- }
-
- /**
* Resets the next entry ID counter to zero. This should only be used after
* clearing all databases.
*/
--
Gitblit v1.10.0