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/DN2URI.java |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/DN2URI.java b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/DN2URI.java
index b7c2cff..cde321c 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/DN2URI.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/DN2URI.java
@@ -74,7 +74,7 @@
  * as in the DN database so that all referrals in a subtree can be retrieved by
  * cursoring through a range of the records.
  */
-public class DN2URI extends DatabaseContainer
+class DN2URI extends DatabaseContainer
 {
   private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass();
 
@@ -205,7 +205,7 @@
    * @return true if the values were deleted, false if not.
    * @throws StorageRuntimeException If an error occurs in the JE database.
    */
-  boolean delete(WriteableStorage txn, DN dn) throws StorageRuntimeException
+  private boolean delete(WriteableStorage txn, DN dn) throws StorageRuntimeException
   {
     ByteString key = toKey(dn);
 
@@ -226,7 +226,8 @@
    * @return true if the value was deleted, false if not.
    * @throws StorageRuntimeException If an error occurs in the JE database.
    */
-  boolean delete(WriteableStorage txn, DN dn, Collection<String> labeledURIs) throws StorageRuntimeException
+  private boolean delete(WriteableStorage txn, DN dn, Collection<String> labeledURIs)
+      throws StorageRuntimeException
   {
     ByteString key = toKey(dn);
 
@@ -356,7 +357,7 @@
    * @throws StorageRuntimeException
    *           If an error occurs in the JE database.
    */
-  public void replaceEntry(WriteableStorage txn, Entry before, Entry after)
+  void replaceEntry(WriteableStorage txn, Entry before, Entry after)
        throws StorageRuntimeException
   {
     deleteEntry(txn, before);
@@ -372,7 +373,7 @@
    * @return True if the entry was added successfully or False otherwise.
    * @throws StorageRuntimeException If an error occurs in the JE database.
    */
-  public boolean addEntry(WriteableStorage txn, Entry entry)
+  boolean addEntry(WriteableStorage txn, Entry entry)
        throws StorageRuntimeException
   {
     Set<String> labeledURIs = entry.getReferralURLs();
@@ -434,7 +435,8 @@
    * DN.  The referral URLs will be set appropriately for the references found
    * in the referral entry.
    */
-  void throwReferralException(DN targetDN, DN referralDN, Collection<String> labeledURIs, SearchScope searchScope)
+  private void throwReferralException(DN targetDN, DN referralDN, Collection<String> labeledURIs,
+      SearchScope searchScope)
       throws DirectoryException
   {
     ArrayList<String> URIList = new ArrayList<String>(labeledURIs.size());

--
Gitblit v1.10.0