From a5ce1b53bf9304c08bb51639b48bb77085cd62b3 Mon Sep 17 00:00:00 2001
From: davidely <davidely@localhost>
Date: Sun, 02 Sep 2007 04:00:42 +0000
Subject: [PATCH] There are several improvements to the unit test framework in this commit.

---
 opends/src/server/org/opends/server/authorization/dseecompat/AciEffectiveRights.java |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/authorization/dseecompat/AciEffectiveRights.java b/opends/src/server/org/opends/server/authorization/dseecompat/AciEffectiveRights.java
index 2160e14..11a3eb4 100644
--- a/opends/src/server/org/opends/server/authorization/dseecompat/AciEffectiveRights.java
+++ b/opends/src/server/org/opends/server/authorization/dseecompat/AciEffectiveRights.java
@@ -757,4 +757,15 @@
     }
     return ret;
   }
+
+  /**
+   * Finalizes static variables on shutdown so that we release the memory
+   * associated with them (for the unit tests) and get fresh copies if we're
+   * doing an in-core restart.
+   */
+  public static void finalizeOnShutdown() {
+    AciEffectiveRights.aclRights = null;
+    AciEffectiveRights.aclRightsInfo = null;
+    AciEffectiveRights.dnAttributeType = null;
+  }
 }

--
Gitblit v1.10.0