From 9a20087a7c428eabc2c9abb9c27f01f623dbe042 Mon Sep 17 00:00:00 2001
From: Nicolas Capponi <nicolas.capponi@forgerock.com>
Date: Fri, 17 Jun 2016 09:54:07 +0000
Subject: [PATCH] OPENDJ-2655 Move CompactDN class as inner class of StaticGroup and optimize its implementation

---
 opendj-server-legacy/src/main/java/org/opends/server/api/Group.java |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/api/Group.java b/opendj-server-legacy/src/main/java/org/opends/server/api/Group.java
index b58cbf9..5dd385f 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/api/Group.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/api/Group.java
@@ -16,7 +16,6 @@
  */
 package org.opends.server.api;
 
-import java.util.HashSet;
 import java.util.List;
 import java.util.Set;
 
@@ -288,6 +287,9 @@
    *                         its DN should be added to the list, and
    *                         any DN already contained in the list
    *                         should be skipped.
+   *                         The use of an atomic reference allow to
+   *                         lazily create the Set to optimize memory
+   *                         when there is no nested groups.
    *
    * @return  {@code true} if the specified user is currently a member
    *          of this group, or {@code false} if not.
@@ -339,6 +341,9 @@
    *                         its DN should be added to the list, and
    *                         any DN already contained in the list
    *                         should be skipped.
+   *                         The use of an atomic reference allow to
+   *                         lazily create the Set to optimize memory
+   *                         when there is no nested groups.
    *
    * @return  {@code true} if the specified user is currently a member
    *          of this group, or {@code false} if not.

--
Gitblit v1.10.0