aboutsummaryrefslogtreecommitdiffstats
path: root/workflow-designer-be/src/main/java
diff options
context:
space:
mode:
authorAvi Gaffa <avi.gaffa@amdocs.com>2018-08-05 08:09:14 +0000
committerGerrit Code Review <gerrit@onap.org>2018-08-05 08:09:14 +0000
commitbc16f708119e8907fd4beb8d1de9c525d4b9d9ee (patch)
tree9fc7e6c63af685062652d47987dc1e49e0b03eb2 /workflow-designer-be/src/main/java
parent8372b56a5c36293dc06f2dda6bb9389467d3eba7 (diff)
parent02201e449b644790e99bbb230579d96cae4a53da (diff)
Merge "Refactor and add test flows"
Diffstat (limited to 'workflow-designer-be/src/main/java')
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/types/VersionStatesFormatter.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/types/VersionStatesFormatter.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/types/VersionStatesFormatter.java
index 5467dee8..c9d3bf1e 100644
--- a/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/types/VersionStatesFormatter.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/api/types/VersionStatesFormatter.java
@@ -1,6 +1,7 @@
package org.onap.sdc.workflow.api.types;
import java.util.Arrays;
+import java.util.Collections;
import java.util.Set;
import java.util.stream.Collectors;
import lombok.Getter;
@@ -29,8 +30,8 @@ public class VersionStatesFormatter {
.collect(Collectors.toSet());
} catch (Exception ignore) {
LOGGER.info(
- "value is invalid and cannot be formatted to a set of version states, therefore it set to null");
- return null;
+ "value is invalid and cannot be formatted to a set of version states, therefore it set to empty set");
+ return Collections.emptySet();
}
}
}