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

boli
18.26.2006 ea9e25490664445215eff3c88189d32d748ee2b6
opends/src/server/org/opends/server/backends/jeb/EqualityIndexer.java
@@ -273,9 +273,8 @@
    {
      try
      {
        byte[] normalizedBytes = value.getNormalizedValue().value();
        byte[] keyBytes = value.getNormalizedValue().value();
        byte[] keyBytes = makeEqualityKey(normalizedBytes);
        keys.add(new ASN1OctetString(keyBytes));
      }
      catch (DirectoryException e)
@@ -301,25 +300,4 @@
    }
  }
  /**
   * Makes a byte array representing an equality index key from
   * a byte array containing the normalized value.
   * The key is '=' followed by the normalized value.
   * FIXME: The '=' prefix is no longer necessary since different index
   * FIXME: types are no longer stored in the same database, but uses of
   * FIXME: the Index.readRange method would have to be revisited if the
   * FIXME: prefix is removed.
   *
   * @param normalizedBytes The normalized value.
   * @return A byte array containing the equality key.
   */
  byte[] makeEqualityKey(byte[] normalizedBytes)
  {
    byte[] keyBytes = new byte[1 + normalizedBytes.length];
    keyBytes[0] = '=';
    System.arraycopy(normalizedBytes, 0, keyBytes, 1,
                     normalizedBytes.length);
    return keyBytes;
  }
}