summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsubhash kumar singh <subhash.kumar.singh@huawei.com>2018-05-04 05:07:20 +0000
committerGerrit Code Review <gerrit@onap.org>2018-05-04 05:07:20 +0000
commit06b179eece3a67b8124559325df061aed0849760 (patch)
tree1d8ce65d44a6a098b86cbd9d43117d918b38b31f
parent42ac6fd1c4ac3233aad0facacd2a868fc5668b1c (diff)
parent5ec5f91502887621e0429a8d7b6eb99f084ebf5e (diff)
Merge changes I52043a90,Id1bc614e
* changes: Use List instead of ArrayList Make return value as abstract collection instead
-rw-r--r--profiles/http/src/main/java/org/onap/cli/fw/http/schema/OnapCommandSchemaHttpLoader.java2
-rw-r--r--profiles/snmp/src/main/java/org/onap/cli/fw/snmp/schema/OnapCommandSchemaSnmpLoader.java2
2 files changed, 2 insertions, 2 deletions
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<String> validateHttpSchemaSection(Map<String, ?> values) {
+ public static List<String> validateHttpSchemaSection(Map<String, ?> values) {
ArrayList<String> errorList = new ArrayList<>();
Map<String, ?> map = (Map<String, ?>) values.get(OnapCommandHttpConstants.HTTP);
Map<String, Object> requestMap = (Map<String, Object>) map.get(OnapCommandHttpConstants.REQUEST);
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<String> parseSnmpSchema(OnapSnmpCommand cmd,
+ public static List<String> parseSnmpSchema(OnapSnmpCommand cmd,
final Map<String, ?> values,
boolean validate) throws OnapCommandException {