From 9921b1751cde31721958d004935f2b7fc5e95513 Mon Sep 17 00:00:00 2001 From: jitendra007 Date: Tue, 21 Jul 2020 14:35:31 +0530 Subject: Code improvement for pending sonar issues Issue-ID: CLI-270 Signed-off-by: jitendra007 Change-Id: Ie27d3ff077fa1ef4d13788849aa82d695f183eeb --- .../snmp/src/main/java/org/onap/cli/fw/snmp/cmd/OnapSnmpCommand.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'profiles/snmp') diff --git a/profiles/snmp/src/main/java/org/onap/cli/fw/snmp/cmd/OnapSnmpCommand.java b/profiles/snmp/src/main/java/org/onap/cli/fw/snmp/cmd/OnapSnmpCommand.java index 4fc47538..08837a0f 100644 --- a/profiles/snmp/src/main/java/org/onap/cli/fw/snmp/cmd/OnapSnmpCommand.java +++ b/profiles/snmp/src/main/java/org/onap/cli/fw/snmp/cmd/OnapSnmpCommand.java @@ -41,7 +41,6 @@ import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Optional; -import java.util.Vector; /** * Oclip snmp Command. @@ -120,7 +119,7 @@ public class OnapSnmpCommand extends OnapCommand { ResponseEvent responseEvent = snmp.send(getPDU(PDU.GET, oidStrArr), getTarget(), null); if ( responseEvent != null) { if (responseEvent.getResponse().getErrorStatus() == PDU.noError) { - Vector variableBindings = responseEvent. + List variableBindings = responseEvent. getResponse().getVariableBindings(); variableBindings.stream().forEach(varBinding -> { //NOSONAR String key = getKeyForValue(varBinding.getOid().toString()); -- cgit 1.2.3-korg