From 504a43fc479d884085df9895900608dc5b0aca6f Mon Sep 17 00:00:00 2001
From: Valery Kharseko <vharseko@3a-systems.ru>
Date: Fri, 31 Jul 2026 07:52:35 +0000
Subject: [PATCH] Fix CodeQL warning-severity alerts: dead checks, boxed locals and three null dereferences (#793)
---
opendj-server-legacy/src/main/java/org/opends/server/tools/dsreplication/ReplicationCliMain.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/tools/dsreplication/ReplicationCliMain.java b/opendj-server-legacy/src/main/java/org/opends/server/tools/dsreplication/ReplicationCliMain.java
index 07227ff..716009f 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/tools/dsreplication/ReplicationCliMain.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/tools/dsreplication/ReplicationCliMain.java
@@ -6595,7 +6595,7 @@
ERR_REPLICATION_INITIALIZING_TRIES_COMPLETED.get(
pnfe.getMessageObject()), INITIALIZING_TRIES_COMPLETED, pnfe);
}
- sleepCatchInterrupt((5 - nTries) * 3000);
+ sleepCatchInterrupt((5 - nTries) * 3000L);
}
catch (ApplicationException ae)
{
@@ -6648,7 +6648,7 @@
ERR_REPLICATION_INITIALIZING_TRIES_COMPLETED.get(
pnfe.getMessageObject()), INITIALIZING_TRIES_COMPLETED, pnfe);
}
- sleepCatchInterrupt((5 - nTries) * 3000);
+ sleepCatchInterrupt((5 - nTries) * 3000L);
}
catch (ClientException ae)
{
--
Gitblit v1.10.0