refactor: make some constant things that are List immutable by using List.of()

This commit is contained in:
ChomeNS
2025-04-23 16:15:17 +07:00
parent c90840265a
commit b1925edf00
7 changed files with 64 additions and 82 deletions

View File

@@ -46,7 +46,7 @@ public class ChatPlugin implements Listener {
public final Pattern CHAT_SPLIT_PATTERN = Pattern.compile("\\G\\s*([^\\r\\n]{1,254}(?=\\s|$)|[^\\r\\n]{254})");
private final List<ChatParser> chatParsers = Collections.synchronizedList(new ArrayList<>());
private final List<ChatParser> chatParsers = new ArrayList<>();
public final List<Component> chatTypes = new ArrayList<>();