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

Jean-Noël Rouvignac
29.51.2015 4baece95779dd46a3a59d59d1b7aa5958cf6117d
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/AttributeIndex.java
@@ -201,7 +201,7 @@
      try
      {
        SortedSet<ByteString> keys = new TreeSet<>();
        indexer.createKeys(Schema.getDefaultSchema(), ByteString.valueOf(key.getBytes()), keys);
        indexer.createKeys(Schema.getDefaultSchema(), ByteString.valueOfUtf8(key), keys);
        return keys.first();
      }
      catch (DecodeException e)
@@ -212,7 +212,7 @@
  }
  /** The key bytes used for the presence index as a {@link ByteString}. */
  static final ByteString PRESENCE_KEY = ByteString.valueOf("+");
  static final ByteString PRESENCE_KEY = ByteString.valueOfUtf8("+");
  /** A special indexer for generating presence indexes. */
  private static final Indexer PRESENCE_INDEXER = new Indexer()