From 9b22e6c88920b4d06ff0a8a67153452f8fd1bd1b Mon Sep 17 00:00:00 2001
From: Valery Kharseko <vharseko@3a-systems.ru>
Date: Tue, 04 Aug 2026 08:29:20 +0000
Subject: [PATCH] Fix CodeQL note-severity alerts: deprecated JDK calls and inefficient expressions (#823)
---
opendj-server-legacy/src/snmp/src/org/opends/server/snmp/DsApplIfOpsEntryImpl.java | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/opendj-server-legacy/src/snmp/src/org/opends/server/snmp/DsApplIfOpsEntryImpl.java b/opendj-server-legacy/src/snmp/src/org/opends/server/snmp/DsApplIfOpsEntryImpl.java
index cd37c0b..e211354 100644
--- a/opendj-server-legacy/src/snmp/src/org/opends/server/snmp/DsApplIfOpsEntryImpl.java
+++ b/opendj-server-legacy/src/snmp/src/org/opends/server/snmp/DsApplIfOpsEntryImpl.java
@@ -77,8 +77,8 @@
super(mib);
this.server = server;
this.connectionHandlerName = connectionHandlerObjectName;
- this.ApplIndex = new Integer(applIndex);
- this.DsApplIfProtocolIndex = new Integer(connectionHandlerIndex);
+ this.ApplIndex = Integer.valueOf(applIndex);
+ this.DsApplIfProtocolIndex = Integer.valueOf(connectionHandlerIndex);
this.monitor = SNMPMonitor.getMonitor(server);
}
@@ -98,7 +98,7 @@
if (index==-1) {
return this.DsApplIfProtocol;
}
- return new String("1.3.6.1..27.3.") + portNumber.substring(index+1);
+ return "1.3.6.1..27.3." + portNumber.substring(index+1);
}
}
--
Gitblit v1.10.0