Skip to content

Commit

Permalink
Merge branch '1902' into 2001
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxNeedsSnacks committed May 20, 2024
2 parents 73dea2b + e293687 commit fc38ad0
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
import org.jetbrains.annotations.Nullable;

import java.util.HashMap;
import java.util.HashSet;
import java.util.IdentityHashMap;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.Map;
import java.util.Set;
import java.util.function.Consumer;
Expand Down Expand Up @@ -142,7 +142,7 @@ public void listen(ScriptType type, @Nullable Object extraId, IEventHandler hand
map = eventContainers;
} else {
if (extraEventContainers == null) {
extraEventContainers = extra.identity ? new IdentityHashMap<>() : new HashMap<>();
extraEventContainers = extra.identity ? new LinkedHashMap<>() : new HashMap<>();
}

map = extraEventContainers.get(extraId);
Expand Down Expand Up @@ -362,7 +362,7 @@ public Set<Object> findUniqueExtraIds(ScriptType type) {
return Set.of();
}

var set = new HashSet<>();
var set = new LinkedHashSet<>();

forEachListener(type, c -> {
if (c.extraId != null) {
Expand Down

0 comments on commit fc38ad0

Please sign in to comment.