refactor: use final on basically everything

i'm kinda tired of the inconsistency since some stuff are non-final and some are final so i just made everything final, not sure how much it impacts on stuff but everything should be fine, there were around 1,400 replacements according to the idea code analyzer
This commit is contained in:
ChomeNS
2025-04-09 17:05:11 +07:00
parent 2764673f21
commit ed4e7573a9
171 changed files with 1530 additions and 1534 deletions

View File

@@ -9,21 +9,21 @@ import net.kyori.adventure.text.serializer.gson.GsonComponentSerializer;
public class GetLatestChatMessageFunction extends EvalFunction implements ChatPlugin.Listener {
private String latestMessage = "";
public GetLatestChatMessageFunction (Bot bot) {
public GetLatestChatMessageFunction (final Bot bot) {
super("getLatestChatMessage", bot);
bot.chat.addListener(this);
}
@Override
public boolean systemMessageReceived (Component component, String string, String ansi) {
public boolean systemMessageReceived (final Component component, final String string, final String ansi) {
latestMessage = GsonComponentSerializer.gson().serialize(component);
return true;
}
@Override
public Output execute (Object... args) {
public Output execute (final Object... args) {
return new Output(latestMessage, true);
}
}