From 404b592f74a827613863aa77533fa84af57b2732 Mon Sep 17 00:00:00 2001 From: sindhu3672 Date: Fri, 9 Aug 2019 21:08:06 +0530 Subject: Merge if stmts for code readability Merge if stmts for code readability asdc controller DeployActivitySpecs class Issue-ID: SO-2187 Signed-off-by: sindhu3672 Change-Id: If27dc7b6e28e4058c4132e7d8178b773cb9f065b --- .../main/java/org/onap/so/asdc/activity/DeployActivitySpecs.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'asdc-controller/src') 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 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); -- cgit 1.2.3-korg