From ed699902a89c7be9c46f3c9bb24c33fdee507879 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Thu, 12 Oct 2006 05:27:32 +0000
Subject: [PATCH] Update code in the org.opends.server.util package to use the Validator.ensureNotNull method for arguments that are not allowed to be null, and also update the javadoc for the corresponding @param tags to indicate this.

---
 opends/src/server/org/opends/server/util/ChangeRecordEntry.java |   14 +++++---------
 1 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/opends/src/server/org/opends/server/util/ChangeRecordEntry.java b/opends/src/server/org/opends/server/util/ChangeRecordEntry.java
index db7680e..5cc8d86 100644
--- a/opends/src/server/org/opends/server/util/ChangeRecordEntry.java
+++ b/opends/src/server/org/opends/server/util/ChangeRecordEntry.java
@@ -30,6 +30,7 @@
 
 import static org.opends.server.loggers.Debug.debugConstructor;
 import static org.opends.server.loggers.Debug.debugEnter;
+import static org.opends.server.util.Validator.*;
 
 import org.opends.server.types.DN;
 
@@ -56,20 +57,15 @@
   /**
    * Creates a new change record entry with the provided information.
    *
-   * @param  dn  The distinguished name for this change record entry.
+   * @param  dn  The distinguished name for this change record entry.  It must
+   *             not be <CODE>null</CODE>.
    */
   protected ChangeRecordEntry(DN dn)
   {
     assert debugConstructor(CLASS_NAME, String.valueOf(dn));
 
-    if (dn == null)
-    {
-      this.dn = new DN();
-    }
-    else
-    {
-      this.dn = dn;
-    }
+    ensureNotNull(dn);
+    this.dn = dn;
   }
 
 

--
Gitblit v1.10.0