mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-12-25 18:49:00 +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
|
||||
* defined in {@link NodeComparator}.</p>
|
||||
*/
|
||||
private final SortedSetMultimap<ImmutableContextSet, LocalizedNode> map = Multimaps.newSortedSetMultimap(
|
||||
new ConcurrentSkipListMap<>(ContextSetComparator.reverse()),
|
||||
VALUE_SET_SUPPLIER
|
||||
private final SortedSetMultimap<ImmutableContextSet, LocalizedNode> map = Multimaps.synchronizedSortedSetMultimap(
|
||||
Multimaps.newSortedSetMultimap(
|
||||
new ConcurrentSkipListMap<>(ContextSetComparator.reverse()),
|
||||
VALUE_SET_SUPPLIER
|
||||
)
|
||||
);
|
||||
|
||||
/**
|
||||
* Copy of {@link #map} which only contains group nodes
|
||||
* @see Node#isGroupNode()
|
||||
*/
|
||||
private final SortedSetMultimap<ImmutableContextSet, LocalizedNode> inheritanceMap = Multimaps.newSortedSetMultimap(
|
||||
new ConcurrentSkipListMap<>(ContextSetComparator.reverse()),
|
||||
VALUE_SET_SUPPLIER
|
||||
private final SortedSetMultimap<ImmutableContextSet, LocalizedNode> inheritanceMap = Multimaps.synchronizedSortedSetMultimap(
|
||||
Multimaps.newSortedSetMultimap(
|
||||
new ConcurrentSkipListMap<>(ContextSetComparator.reverse()),
|
||||
VALUE_SET_SUPPLIER
|
||||
)
|
||||
);
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user