Signed-off-by: MichaelMorris <michael.morris@est.tech>
Issue-ID: SDC-4403
Change-Id: I8194ccce7d0c48588e3dd8b1903be22ba92ac955
}
if (CollectionUtils.isNotEmpty(property.getSubPropertyToscaFunctions())) {
ToscaPropertyType type = ToscaPropertyType.isValidType(property.getType());
- if (type.equals(ToscaPropertyType.LIST)) {
+ if (ToscaPropertyType.LIST.equals(type)) {
final JSONArray jsonArray = property.getValue() == null ? new JSONArray() : new JSONArray(property.getValue());
property.getSubPropertyToscaFunctions().stream().forEach(subToscaFunction -> {
addE(jsonArray, subToscaFunction.getSubPropertyPath(), subToscaFunction.getToscaFunction().getValue());