mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
APPS-692: after properties removed. (#315)
This commit is contained in:
@@ -416,11 +416,13 @@ public class EventConsolidator implements EventSupportedPolicies
|
|||||||
}
|
}
|
||||||
// Get before values that changed
|
// Get before values that changed
|
||||||
Map<K, V> beforeDelta = new HashMap<>(before);
|
Map<K, V> beforeDelta = new HashMap<>(before);
|
||||||
|
Map<K, V> afterDelta = new HashMap<>(after);
|
||||||
|
|
||||||
beforeDelta.entrySet().removeAll(after.entrySet());
|
beforeDelta.entrySet().removeAll(after.entrySet());
|
||||||
|
|
||||||
// Add nulls for before properties
|
// Add nulls for before properties
|
||||||
Set<K> beforeKeys = before.keySet();
|
Set<K> beforeKeys = before.keySet();
|
||||||
Set<K> newKeys = after.keySet();
|
Set<K> newKeys = afterDelta.keySet();
|
||||||
newKeys.removeAll(beforeKeys);
|
newKeys.removeAll(beforeKeys);
|
||||||
|
|
||||||
for (K key : newKeys)
|
for (K key : newKeys)
|
||||||
|
Reference in New Issue
Block a user