From 3a768767519e84f731e29f5b7375493805db6b69 Mon Sep 17 00:00:00 2001 From: Colm O hEigeartaigh Date: Tue, 29 Oct 2024 05:23:44 +0000 Subject: [PATCH] DIRSERVER-2414 - Call to equals() comparing different types (#248) --- .../core/partition/impl/btree/AbstractBTreePartition.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/AbstractBTreePartition.java b/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/AbstractBTreePartition.java index 70b7a89ad2..b654a9be19 100644 --- a/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/AbstractBTreePartition.java +++ b/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/AbstractBTreePartition.java @@ -1839,7 +1839,7 @@ else if ( attributeType.equals( administrativeRoleAT ) ) { String valueStr = value.getString(); - if ( valueStr.equals( topOCValue ) ) + if ( valueStr.equals( topOCValue.getString() ) ) { continue; }