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

Jean-Noel Rouvignac
11.37.2015 a465378dd21226dd26665300c5aadb1eedef5caa
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/EntryIDSet.java
@@ -267,37 +267,27 @@
  /**
   * Convert to a short string to aid with debugging.
   *
   * @param buffer The string is appended to this string builder.
   * @param sb The string is appended to this string builder.
   */
  void toString(StringBuilder buffer)
  void toString(StringBuilder sb)
  {
    if (!isDefined())
    if (isDefined())
    {
      if (key != null)
      sb.append("[COUNT:").append(size()).append("]");
    }
    else if (key != null)
    {
      // The index entry limit was exceeded
      sb.append("[LIMIT-EXCEEDED");
      if (undefinedSize == Long.MAX_VALUE)
      {
        // The index entry limit was exceeded
        if(undefinedSize == Long.MAX_VALUE)
        {
          buffer.append("[LIMIT-EXCEEDED]");
        }
        else
        {
          buffer.append("[LIMIT-EXCEEDED:");
          buffer.append(undefinedSize);
          buffer.append("]");
        }
        sb.append(":").append(undefinedSize);
      }
      else
      {
        // Not indexed
        buffer.append("[NOT-INDEXED]");
      }
      sb.append("]");
    }
    else
    {
      buffer.append("[COUNT:");
      buffer.append(size());
      buffer.append("]");
      sb.append("[NOT-INDEXED]");
    }
  }