mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2025-01-13 19:52:01 +01:00
Use synchronized wrapper for NodeMap backings
This commit is contained in:
parent
da3c2a073a
commit
01ffe6ad5a
@ -84,18 +84,22 @@ public final class NodeMap {
|
|||||||
* key, and finally by the overall size of the set. Nodes are ordered according to the priority rules
|
* key, and finally by the overall size of the set. Nodes are ordered according to the priority rules
|
||||||
* defined in {@link NodeComparator}.</p>
|
* defined in {@link NodeComparator}.</p>
|
||||||
*/
|
*/
|
||||||
private final SortedSetMultimap<ImmutableContextSet, LocalizedNode> map = Multimaps.newSortedSetMultimap(
|
private final SortedSetMultimap<ImmutableContextSet, LocalizedNode> map = Multimaps.synchronizedSortedSetMultimap(
|
||||||
new ConcurrentSkipListMap<>(ContextSetComparator.reverse()),
|
Multimaps.newSortedSetMultimap(
|
||||||
VALUE_SET_SUPPLIER
|
new ConcurrentSkipListMap<>(ContextSetComparator.reverse()),
|
||||||
|
VALUE_SET_SUPPLIER
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Copy of {@link #map} which only contains group nodes
|
* Copy of {@link #map} which only contains group nodes
|
||||||
* @see Node#isGroupNode()
|
* @see Node#isGroupNode()
|
||||||
*/
|
*/
|
||||||
private final SortedSetMultimap<ImmutableContextSet, LocalizedNode> inheritanceMap = Multimaps.newSortedSetMultimap(
|
private final SortedSetMultimap<ImmutableContextSet, LocalizedNode> inheritanceMap = Multimaps.synchronizedSortedSetMultimap(
|
||||||
new ConcurrentSkipListMap<>(ContextSetComparator.reverse()),
|
Multimaps.newSortedSetMultimap(
|
||||||
VALUE_SET_SUPPLIER
|
new ConcurrentSkipListMap<>(ContextSetComparator.reverse()),
|
||||||
|
VALUE_SET_SUPPLIER
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user