Merge branch '5.2.x'

This commit is contained in:
Sam Brannen
2020-08-22 23:50:28 +02:00
4 changed files with 15 additions and 45 deletions

View File

@@ -16,9 +16,9 @@
package org.springframework.transaction.support;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import org.springframework.beans.factory.ObjectFactory;
import org.springframework.beans.factory.config.Scope;
@@ -92,7 +92,7 @@ public class SimpleTransactionScope implements Scope {
*/
static class ScopedObjectsHolder {
final Map<String, Object> scopedInstances = new HashMap<>();
final Map<String, Object> scopedInstances = new ConcurrentHashMap<>();
final Map<String, Runnable> destructionCallbacks = new LinkedHashMap<>();
}