From ace0dc341cf3a206345702029165e44fb6e8efd9 Mon Sep 17 00:00:00 2001
From: Valery Kharseko <vharseko@3a-systems.ru>
Date: Tue, 04 Aug 2026 08:30:04 +0000
Subject: [PATCH] Fix CodeQL note-severity alerts: calls to the deprecated Entry compatibility methods (#826)
---
opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/EntryHistorical.java | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/EntryHistorical.java b/opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/EntryHistorical.java
index 7e11134..40f3b5b 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/EntryHistorical.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/EntryHistorical.java
@@ -234,7 +234,7 @@
mods.add(new Modification(ModificationType.REPLACE, attr));
// - update the already modified entry
modifiedEntry.removeAttribute(attr.getAttributeDescription().getAttributeType());
- modifiedEntry.addAttribute(attr, null);
+ modifiedEntry.addAttribute(attr);
}
/**
--
Gitblit v1.10.0