mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-09-17 14:21:39 +00:00
[ACS-9736] Cleanup
This commit is contained in:
@@ -632,16 +632,11 @@ public class AuditComponentImpl implements AuditComponent
|
|||||||
{
|
{
|
||||||
String path = entry.getKey();
|
String path = entry.getKey();
|
||||||
String rootKey = AuditApplication.getRootKey(path);
|
String rootKey = AuditApplication.getRootKey(path);
|
||||||
Map<String, Serializable> rootKeyMappedValues = mappedValuesByRootKey.get(rootKey);
|
Map<String, Serializable> rootKeyMappedValues = mappedValuesByRootKey.computeIfAbsent(rootKey, k -> new HashMap<>(7));
|
||||||
if (rootKeyMappedValues == null)
|
|
||||||
{
|
|
||||||
rootKeyMappedValues = new HashMap<>(7);
|
|
||||||
mappedValuesByRootKey.put(rootKey, rootKeyMappedValues);
|
|
||||||
}
|
|
||||||
rootKeyMappedValues.put(path, entry.getValue());
|
rootKeyMappedValues.put(path, entry.getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
Map<String, Serializable> allAuditedValues = new HashMap<String, Serializable>(mappedValues.size() * 2 + 1);
|
Map<String, Serializable> allAuditedValues = new HashMap<>(mappedValues.size() * 2 + 1);
|
||||||
// Now audit for each of the root keys
|
// Now audit for each of the root keys
|
||||||
for (Map.Entry<String, Map<String, Serializable>> entry : mappedValuesByRootKey.entrySet())
|
for (Map.Entry<String, Map<String, Serializable>> entry : mappedValuesByRootKey.entrySet())
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user