From fcc3ecf2430f8956993bcc47f2fd513292512354 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Fri, 03 Nov 2006 16:39:22 +0000
Subject: [PATCH] Refactor DN and RDN classes and improve their test coverage.

---
 opendj-sdk/opends/src/server/org/opends/server/protocols/jmx/JmxConnectionHandler.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/protocols/jmx/JmxConnectionHandler.java b/opendj-sdk/opends/src/server/org/opends/server/protocols/jmx/JmxConnectionHandler.java
index 99238fc..bbfe835 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/protocols/jmx/JmxConnectionHandler.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/protocols/jmx/JmxConnectionHandler.java
@@ -337,7 +337,7 @@
     // in the current entry.
     // Always return true as the check will be performed by the
     // hasAcceptableConfiguration call
-    if (configEntry.getDN().compareTo(configEntryDN) == 0)
+    if (configEntry.getDN().equals(configEntryDN))
     {
       return true;
     }
@@ -370,7 +370,7 @@
     //
     // We are checking first if we are dealing with a change
     // in the current entry.
-    if (configEntry.getDN().compareTo(configEntryDN) == 0)
+    if (configEntry.getDN().equals(configEntryDN))
     {
       ArrayList<String> messages = new ArrayList<String>();
       return new ConfigChangeResult(ResultCode.SUCCESS, false, messages);

--
Gitblit v1.10.0