summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSRINIVAS V <srinivasa.mohan@huawei.com>2018-01-06 22:37:33 +0530
committerSRINIVAS V <srinivasa.mohan@huawei.com>2018-01-06 22:39:59 +0530
commitef57280a782d3d009bcaa2481c9f26b2b7e1b877 (patch)
tree1d2fe643903211c0526909861d357029d30fb314
parent477fa7f6a778173e15aaf3cb2f795cdbec85e13a (diff)
Fixed as per Java Code Conventions
*Removed the commented code of addParameter function *Code optimized Change-Id: Ibd711561d1f94854df464d6e94de6ef2fc8b6cd6 Issue-ID: CCSDK-151 Signed-off-by: SRINIVAS V <srinivasa.mohan@huawei.com>
-rw-r--r--asdcApi/provider/src/main/java/org/onap/ccsdk/sli/northbound/asdcapi/AsdcApiProvider.java6
-rw-r--r--ueb-listener/src/main/java/org/onap/ccsdk/sli/northbound/uebclient/SdncARModel.java2
2 files changed, 1 insertions, 7 deletions
diff --git a/asdcApi/provider/src/main/java/org/onap/ccsdk/sli/northbound/asdcapi/AsdcApiProvider.java b/asdcApi/provider/src/main/java/org/onap/ccsdk/sli/northbound/asdcapi/AsdcApiProvider.java
index 7f830bcc8..0c2ce2fc2 100644
--- a/asdcApi/provider/src/main/java/org/onap/ccsdk/sli/northbound/asdcapi/AsdcApiProvider.java
+++ b/asdcApi/provider/src/main/java/org/onap/ccsdk/sli/northbound/asdcapi/AsdcApiProvider.java
@@ -189,11 +189,7 @@ public class AsdcApiProvider implements AutoCloseable, ASDCAPIService {
}
- if (data.isPresent()) {
- return true;
- } else {
- return false;
- }
+ return data.isPresent();
}
protected void addArtifactVersion(String aName, String aVersion) {
diff --git a/ueb-listener/src/main/java/org/onap/ccsdk/sli/northbound/uebclient/SdncARModel.java b/ueb-listener/src/main/java/org/onap/ccsdk/sli/northbound/uebclient/SdncARModel.java
index b26c50fb2..65215593a 100644
--- a/ueb-listener/src/main/java/org/onap/ccsdk/sli/northbound/uebclient/SdncARModel.java
+++ b/ueb-listener/src/main/java/org/onap/ccsdk/sli/northbound/uebclient/SdncARModel.java
@@ -43,8 +43,6 @@ public class SdncARModel extends SdncBaseModel {
addParameter("type", extractValue (nodeTemplate, "nf_type"));
addParameter("ecomp_generated_naming", extractBooleanValue (nodeTemplate, "nf_naming#ecomp_generated_naming"));
addParameter("naming_policy", extractValue (nodeTemplate, "nf_naming#naming_policy"));
- //addParameter("depending_service", extractValue (sdcCsarHelper, nodeTemplate, SdcPropertyNames.PROPERTY_NAME_DEPENDINGSERVICE));
- //addParameter("service_dependency", extractValue (sdcCsarHelper, nodeTemplate, SdcPropertyNames.PROPERTY_NAME_SERVICEDEPENDENCY));
}
}