diff options
Diffstat (limited to 'profiles/snmp')
-rw-r--r-- | profiles/snmp/src/main/java/org/onap/cli/fw/snmp/cmd/OnapSnmpCommand.java | 3 |
1 files changed, 1 insertions, 2 deletions
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<? extends VariableBinding> variableBindings = responseEvent. + List<? extends VariableBinding> variableBindings = responseEvent. getResponse().getVariableBindings(); variableBindings.stream().forEach(varBinding -> { //NOSONAR String key = getKeyForValue(varBinding.getOid().toString()); |