diff options
author | sindhu3672 <arcot.sindhuri@huawei.com> | 2019-08-09 21:08:06 +0530 |
---|---|---|
committer | sindhu3672 <arcot.sindhuri@huawei.com> | 2019-08-09 21:08:06 +0530 |
commit | 404b592f74a827613863aa77533fa84af57b2732 (patch) | |
tree | 8e6d0f46f83f5173971f49590155c858f7f802fa /asdc-controller/src/main | |
parent | f4753b2f9dff4c7440e2450e175bae1a04cb695d (diff) |
Merge if stmts for code readability
Merge if stmts for code readability asdc controller DeployActivitySpecs class
Issue-ID: SO-2187
Signed-off-by: sindhu3672 <arcot.sindhuri@huawei.com>
Change-Id: If27dc7b6e28e4058c4132e7d8178b773cb9f065b
Diffstat (limited to 'asdc-controller/src/main')
-rw-r--r-- | asdc-controller/src/main/java/org/onap/so/asdc/activity/DeployActivitySpecs.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/asdc-controller/src/main/java/org/onap/so/asdc/activity/DeployActivitySpecs.java b/asdc-controller/src/main/java/org/onap/so/asdc/activity/DeployActivitySpecs.java index e048d4c567..0fc94c8bd6 100644 --- a/asdc-controller/src/main/java/org/onap/so/asdc/activity/DeployActivitySpecs.java +++ b/asdc-controller/src/main/java/org/onap/so/asdc/activity/DeployActivitySpecs.java @@ -97,10 +97,8 @@ public class DeployActivitySpecs { } List<String> categoryList = new ArrayList<>(); for (ActivitySpecActivitySpecCategories activitySpecCat : activitySpecActivitySpecCategories) { - if (activitySpecCat != null) { - if (activitySpecCat.getActivitySpecCategories() != null) { - categoryList.add(activitySpecCat.getActivitySpecCategories().getName()); - } + if (activitySpecCat != null && activitySpecCat.getActivitySpecCategories() != null) { + categoryList.add(activitySpecCat.getActivitySpecCategories().getName()); } } activitySpec.setCategoryList(categoryList); |