From 1322b0f69d5e5401a14a728e45a289311ec7ac4a Mon Sep 17 00:00:00 2001 From: Arpit Singh Date: Fri, 19 Jan 2024 13:46:03 +0530 Subject: CPS 1824: Delta Between 2 Anchors release notes Updated release notes for Delta Feature Issue-ID: CPS-1824 Signed-off-by: Arpit Singh Change-Id: I1c2403391e85aec6a9e34f0ff616c17b100bf6a9 --- .../src/main/java/org/onap/cps/api/impl/CpsDeltaServiceImpl.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cps-service/src/main') diff --git a/cps-service/src/main/java/org/onap/cps/api/impl/CpsDeltaServiceImpl.java b/cps-service/src/main/java/org/onap/cps/api/impl/CpsDeltaServiceImpl.java index 1e1fe819ac..2f99dbf7bb 100644 --- a/cps-service/src/main/java/org/onap/cps/api/impl/CpsDeltaServiceImpl.java +++ b/cps-service/src/main/java/org/onap/cps/api/impl/CpsDeltaServiceImpl.java @@ -165,10 +165,11 @@ public class CpsDeltaServiceImpl implements CpsDeltaService { sourceDataInDeltaReport.put(key, sourceLeaf); targetDataInDeltaReport.put(key, targetLeaf); } - } else if (sourceLeaf != null) { - sourceDataInDeltaReport.put(key, sourceLeaf); - } else if (targetLeaf != null) { + } else if (sourceLeaf == null) { targetDataInDeltaReport.put(key, targetLeaf); + + } else { + sourceDataInDeltaReport.put(key, sourceLeaf); } } -- cgit 1.2.3-korg