Fixed as per Java Code Conventions 81/27581/1
authorSRINIVAS V <srinivasa.mohan@huawei.com>
Sat, 6 Jan 2018 17:07:33 +0000 (22:37 +0530)
committerSRINIVAS V <srinivasa.mohan@huawei.com>
Sat, 6 Jan 2018 17:09:59 +0000 (22:39 +0530)
*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>
asdcApi/provider/src/main/java/org/onap/ccsdk/sli/northbound/asdcapi/AsdcApiProvider.java
ueb-listener/src/main/java/org/onap/ccsdk/sli/northbound/uebclient/SdncARModel.java

index 7f830bc..0c2ce2f 100644 (file)
@@ -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) {
index b26c50f..6521559 100644 (file)
@@ -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));
        }
 
 }