diff options
Diffstat (limited to 'catalog-model/src/main')
-rw-r--r-- | catalog-model/src/main/java/org/openecomp/sdc/be/model/tosca/converters/ToscaValueBaseConverter.java | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/tosca/converters/ToscaValueBaseConverter.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/tosca/converters/ToscaValueBaseConverter.java index fd987e8c9c..366acd3e77 100644 --- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/tosca/converters/ToscaValueBaseConverter.java +++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/tosca/converters/ToscaValueBaseConverter.java @@ -151,14 +151,12 @@ public class ToscaValueBaseConverter { * @param convertedValue * @return */ - static public boolean isEmptyObjectValue(Object convertedValue) { - if (convertedValue == null) { - return true; - } else if (convertedValue instanceof String && ((String) convertedValue).isEmpty()) { - return true; - } else if (convertedValue instanceof Map && ((Map) convertedValue).isEmpty()) { - return true; - } else if (convertedValue instanceof List && ((List) convertedValue).isEmpty()) { + public static boolean isEmptyObjectValue(Object convertedValue) { + if ((convertedValue == null) + || (convertedValue instanceof String && ((String) convertedValue).isEmpty()) + || (convertedValue instanceof Map && ((Map) convertedValue).isEmpty()) + || (convertedValue instanceof List && ((List) convertedValue).isEmpty())) + { return true; } return false; |