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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user