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

Valery Kharseko
14 hours ago add86d3c7c047215f886c51e2b29a4c7f1e86c0c
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/DefaultIndex.java
@@ -13,6 +13,7 @@
 *
 * Copyright 2006-2010 Sun Microsystems, Inc.
 * Portions Copyright 2012-2016 ForgeRock AS.
 * Portions Copyright 2026 3A Systems, LLC.
 */
package org.opends.server.backends.pluggable;
@@ -131,7 +132,19 @@
  public final Cursor<ByteString, EntryIDSet> openCursor(ReadableTransaction txn)
  {
    checkNotNull(txn, "txn must not be null");
    return CursorTransformer.transformValues(txn.openCursor(getName()),
    return decoding(txn.openCursor(getName()));
  }
  @Override
  public final Cursor<ByteString, EntryIDSet> openBulkCursor(ReadableTransaction txn)
  {
    checkNotNull(txn, "txn must not be null");
    return decoding(txn.openBulkCursor(getName()));
  }
  private Cursor<ByteString, EntryIDSet> decoding(Cursor<ByteString, ByteString> cursor)
  {
    return CursorTransformer.transformValues(cursor,
        new ValueTransformer<ByteString, ByteString, EntryIDSet, NeverThrowsException>()
        {
          @Override