APPS-692: after properties removed. (#315)

This commit is contained in:
Andreea Nechifor
2021-02-25 20:45:46 +02:00
committed by GitHub
parent 24f2737255
commit 1a5aa34d3d

View File

@@ -416,11 +416,13 @@ public class EventConsolidator implements EventSupportedPolicies
}
// Get before values that changed
Map<K, V> beforeDelta = new HashMap<>(before);
Map<K, V> afterDelta = new HashMap<>(after);
beforeDelta.entrySet().removeAll(after.entrySet());
// Add nulls for before properties
Set<K> beforeKeys = before.keySet();
Set<K> newKeys = after.keySet();
Set<K> newKeys = afterDelta.keySet();
newKeys.removeAll(beforeKeys);
for (K key : newKeys)