From 268be523fb1142138a3f710642b5773453841eeb Mon Sep 17 00:00:00 2001 From: "priyanka.akhade" Date: Thu, 18 Jun 2020 15:11:08 +0530 Subject: code improvements Signed-off-by: priyanka.akhade Issue-ID: CLI-270 Change-Id: If9eab4bc8642c7c20a841d58c8a9e2bf5ae6c98b --- .../snmp/src/main/java/org/onap/cli/fw/snmp/cmd/OnapSnmpCommand.java | 2 +- .../java/org/onap/cli/fw/snmp/schema/OnapCommandSchemaSnmpLoader.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'profiles/snmp/src/main/java') 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 ed88b0c6..3e841e76 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 @@ -75,7 +75,7 @@ public class OnapSnmpCommand extends OnapCommand { return pdu; } - private Target getTarget() throws OnapCommandException { + private Target getTarget() throws OnapCommandException { //NOSONAR Address targetAddress = GenericAddress.parse(this.getAgent()); //udp:127.0.0.1/161 CommunityTarget target = new CommunityTarget(); target.setCommunity(new OctetString(OnapCommandSnmpConstants.SNMP_COMMNUNITY_STRING)); diff --git a/profiles/snmp/src/main/java/org/onap/cli/fw/snmp/schema/OnapCommandSchemaSnmpLoader.java b/profiles/snmp/src/main/java/org/onap/cli/fw/snmp/schema/OnapCommandSchemaSnmpLoader.java index c132be26..ca3f44e0 100644 --- a/profiles/snmp/src/main/java/org/onap/cli/fw/snmp/schema/OnapCommandSchemaSnmpLoader.java +++ b/profiles/snmp/src/main/java/org/onap/cli/fw/snmp/schema/OnapCommandSchemaSnmpLoader.java @@ -40,7 +40,7 @@ public class OnapCommandSchemaSnmpLoader { public static List parseSnmpSchema(OnapSnmpCommand cmd, final Map values, - boolean validate) throws OnapCommandException { + boolean validate) throws OnapCommandException { //NOSONAR ArrayList errorList = new ArrayList<>(); Map valMap = (Map) values.get(OnapCommandSnmpConstants.SNMP); -- cgit 1.2.3-korg