From acdfa16f35b3c3d0c79fad91585b0d03695452e4 Mon Sep 17 00:00:00 2001
From: Nicolas Capponi <nicolas.capponi@forgerock.com>
Date: Mon, 07 Nov 2016 15:05:30 +0000
Subject: [PATCH] OPENDJ-3417 Several minor fixes to apply PR comments

---
 opendj-server-legacy/src/main/java/org/opends/server/backends/RootDSEBackend.java |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/backends/RootDSEBackend.java b/opendj-server-legacy/src/main/java/org/opends/server/backends/RootDSEBackend.java
index 29f9206..87a8643 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/backends/RootDSEBackend.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/backends/RootDSEBackend.java
@@ -426,8 +426,6 @@
 
   private Set<DN> getTopLevelPublicNamingContexts()
   {
-    // TODO: this implementation is insufficient because it handles only the local backends
-    // The non-local backends must be added for completeness
     return new HashSet<DN>(serverContext.getBackendConfigManager().getPublicNamingContexts().keySet());
   }
 
@@ -490,12 +488,7 @@
   @Override
   public boolean entryExists(DN entryDN) throws DirectoryException
   {
-    // If the specified DN was the null DN, then it exists.
-    if (entryDN.isRootDN())
-    {
-      return true;
-    }
-    return false;
+    return entryDN.isRootDN();
   }
 
   @Override

--
Gitblit v1.10.0