From 0c4987c8590b051485e95bcda5e3f89c892d0ac5 Mon Sep 17 00:00:00 2001
From: Valery Kharseko <vharseko@3a-systems.ru>
Date: Tue, 04 Aug 2026 08:27:35 +0000
Subject: [PATCH] Fix CodeQL note-severity alerts: missing @Override annotations (#837)
---
opendj-server-legacy/src/snmp/src/org/opends/server/snmp/SNMPInetAddressAcl.java | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/opendj-server-legacy/src/snmp/src/org/opends/server/snmp/SNMPInetAddressAcl.java b/opendj-server-legacy/src/snmp/src/org/opends/server/snmp/SNMPInetAddressAcl.java
index 38d3abf..ac76768 100644
--- a/opendj-server-legacy/src/snmp/src/org/opends/server/snmp/SNMPInetAddressAcl.java
+++ b/opendj-server-legacy/src/snmp/src/org/opends/server/snmp/SNMPInetAddressAcl.java
@@ -87,6 +87,7 @@
* Gets the name of the acl.
* @return the name of the acl as a String
*/
+ @Override
public String getName() {
return "OpenDS";
}
@@ -94,6 +95,7 @@
/**
* {@inheritDoc}
*/
+ @Override
public boolean checkReadPermission(InetAddress address) {
if (this.allManagers) {
return true;
@@ -110,6 +112,7 @@
/**
* {@inheritDoc}
*/
+ @Override
public boolean checkReadPermission(InetAddress address, String community) {
if ((this.checkReadPermission(address)) &&
(this.checkCommunity(community))) {
@@ -122,6 +125,7 @@
/**
* {@inheritDoc}
*/
+ @Override
public boolean checkCommunity(String community) {
return this.communities.equals(community);
}
@@ -129,6 +133,7 @@
/**
* {@inheritDoc}
*/
+ @Override
public boolean checkWritePermission(InetAddress address) {
// WRITE Access are always denied
return false;
@@ -137,6 +142,7 @@
/**
* {@inheritDoc}
*/
+ @Override
public boolean checkWritePermission(InetAddress address, String community) {
// WRITE Access are always denied
return false;
@@ -146,6 +152,7 @@
* {@inheritDoc}
* @return the list of traps destinations
*/
+ @Override
public Enumeration getTrapDestinations() {
Vector<InetAddress> tempDests = new Vector<InetAddress>();
for (String dest : this.trapsDestinations) {
@@ -161,6 +168,7 @@
* {@inheritDoc}
* @return the list of communities
*/
+ @Override
public Enumeration getTrapCommunities(InetAddress address) {
Vector<String> trapCommunities = new Vector<String>();
trapCommunities.add(this.trapsCommunity);
@@ -171,6 +179,7 @@
* {@inheritDoc}
* @return an empty enumeration
*/
+ @Override
public Enumeration getInformDestinations() {
Vector<String> informDests = new Vector<String>();
return informDests.elements();
@@ -180,6 +189,7 @@
* {@inheritDoc}
* @return an empty enumeration
*/
+ @Override
public Enumeration getInformCommunities(InetAddress address) {
Vector<String> informCommunities = new Vector<String>();
return informCommunities.elements();
--
Gitblit v1.10.0