summaryrefslogtreecommitdiffstats
path: root/cps-service/src/main/java
diff options
context:
space:
mode:
authorArpit Singh <as00745003@techmahindra.com>2024-01-19 13:46:03 +0530
committerArpit Singh <as00745003@techmahindra.com>2024-01-19 15:40:24 +0530
commit1322b0f69d5e5401a14a728e45a289311ec7ac4a (patch)
treeaeb6664bf789f349d216c0d29ef2998b08c4d0e2 /cps-service/src/main/java
parent83433140bac9358aef50036081d1f7079ac10c01 (diff)
CPS 1824: Delta Between 2 Anchors release notes
Updated release notes for Delta Feature Issue-ID: CPS-1824 Signed-off-by: Arpit Singh <as00745003@techmahindra.com> Change-Id: I1c2403391e85aec6a9e34f0ff616c17b100bf6a9
Diffstat (limited to 'cps-service/src/main/java')
-rw-r--r--cps-service/src/main/java/org/onap/cps/api/impl/CpsDeltaServiceImpl.java7
1 files changed, 4 insertions, 3 deletions
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);
}
}