From a89f1d46fb777835ef513e26f2fc9f6bee51c66e Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Wed, 2 May 2018 16:17:28 +0530 Subject: Make return value as abstract collection instead Issue-ID: CLI-106 Change-Id: Id1bc614e410f4efeb0b3d033104c978523d76bc5 Signed-off-by: Kanagaraj Manickam k00365106 --- .../java/org/onap/cli/fw/http/schema/OnapCommandSchemaHttpLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/http/src/main/java/org/onap/cli/fw/http/schema/OnapCommandSchemaHttpLoader.java b/profiles/http/src/main/java/org/onap/cli/fw/http/schema/OnapCommandSchemaHttpLoader.java index 5bb41207..5429b1af 100644 --- a/profiles/http/src/main/java/org/onap/cli/fw/http/schema/OnapCommandSchemaHttpLoader.java +++ b/profiles/http/src/main/java/org/onap/cli/fw/http/schema/OnapCommandSchemaHttpLoader.java @@ -279,7 +279,7 @@ public class OnapCommandSchemaHttpLoader { return errorList; } - public static ArrayList validateHttpSchemaSection(Map values) { + public static List validateHttpSchemaSection(Map values) { ArrayList errorList = new ArrayList<>(); Map map = (Map) values.get(OnapCommandHttpConstants.HTTP); Map requestMap = (Map) map.get(OnapCommandHttpConstants.REQUEST); -- cgit 1.2.3-korg From 5ec5f91502887621e0429a8d7b6eb99f084ebf5e Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Wed, 2 May 2018 16:18:45 +0530 Subject: Use List instead of ArrayList Issue-ID: CLI-106 Change-Id: I52043a90a6d258dddddd7311d0715accfeac427d Signed-off-by: Kanagaraj Manickam k00365106 --- .../java/org/onap/cli/fw/snmp/schema/OnapCommandSchemaSnmpLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 b2af9ae6..c132be26 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 @@ -38,7 +38,7 @@ public class OnapCommandSchemaSnmpLoader { return errorList; } - public static ArrayList parseSnmpSchema(OnapSnmpCommand cmd, + public static List parseSnmpSchema(OnapSnmpCommand cmd, final Map values, boolean validate) throws OnapCommandException { -- cgit 1.2.3-korg