Skip to content

Commit f866a5f

Browse files
authored
Use LinkedHashMap in ChannelInitializeListenerHolder (#13000)
1 parent 616a879 commit f866a5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

paper-server/src/main/java/io/papermc/paper/network/ChannelInitializeListenerHolder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import org.checkerframework.checker.nullness.qual.Nullable;
77

88
import java.util.Collections;
9-
import java.util.HashMap;
9+
import java.util.LinkedHashMap;
1010
import java.util.Map;
1111

1212
/**
@@ -16,7 +16,7 @@
1616
*/
1717
public final class ChannelInitializeListenerHolder {
1818

19-
private static final Map<Key, ChannelInitializeListener> LISTENERS = new HashMap<>();
19+
private static final Map<Key, ChannelInitializeListener> LISTENERS = new LinkedHashMap<>();
2020
private static final Map<Key, ChannelInitializeListener> IMMUTABLE_VIEW = Collections.unmodifiableMap(LISTENERS);
2121

2222
private ChannelInitializeListenerHolder() {

0 commit comments

Comments
 (0)