mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

ludovicp
25.30.2010 67feeafd40da846ef55fb776581c6b06bdabe482
opendj-sdk/opends/src/server/org/opends/server/api/DITCacheMap.java
@@ -116,7 +116,7 @@
  private Map<DN,Node<T>> ditCacheMap;
  /**
   * Default contructor.
   * Default constructor.
   */
  public DITCacheMap()
  {
@@ -124,7 +124,7 @@
  }
  /**
   * Contructs a new DITCacheMap from a given Map.
   * Constructs a new DITCacheMap from a given Map.
   * @param m existing Map to construct new
   *          DITCacheMap from.
   */
@@ -683,6 +683,13 @@
      {
        if (rootNode != null)
        {
          if (node == rootNode)
          {
            if (rootNode.element != null)
            {
              return true;
            }
          }
          while (node != null)
          {
            if (node.element != null)
@@ -695,13 +702,10 @@
            }
            else
            {
              if (node != rootNode)
              while ((node.next == null) &&
                     (node.parent != rootNode))
              {
                while ((node.next == null) &&
                       (node.parent != rootNode))
                {
                  node = node.parent;
                }
                node = node.parent;
              }
              node = node.next;
            }
@@ -719,6 +723,14 @@
        if (rootNode != null)
        {
          if (node == rootNode)
          {
            node = rootNode.child;
            if (rootNode.element != null)
            {
              return rootNode.element;
            }
          }
          while (node != null)
          {
            if (node.element != null)
@@ -735,13 +747,10 @@
            }
            else
            {
              if (node != rootNode)
              while ((node.next == null) &&
                     (node.parent != rootNode))
              {
                while ((node.next == null) &&
                       (node.parent != rootNode))
                {
                  node = node.parent;
                }
                node = node.parent;
              }
              node = node.next;
            }