mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Use ConcurrentHashMap.newKeySet
In places where a ConcurrentHashMap was used as a set by wrapping it with Collections.newSetFromMap, switch to just using the set returned by ConcurrentHashMap.newKeySet directly. Closes gh-32294
This commit is contained in:
committed by
Sam Brannen
parent
ff9c7141c5
commit
f9fe8efb2e
+1
-1
@@ -64,7 +64,7 @@ public class SessionAttributesHandler {
|
||||
|
||||
private final Set<Class<?>> attributeTypes = new HashSet<>();
|
||||
|
||||
private final Set<String> knownAttributeNames = Collections.newSetFromMap(new ConcurrentHashMap<>(4));
|
||||
private final Set<String> knownAttributeNames = ConcurrentHashMap.newKeySet(4);
|
||||
|
||||
private final SessionAttributeStore sessionAttributeStore;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user