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

@@ -29,7 +29,7 @@ public class NetMessageCommand extends Command {
}
@Override
public Component execute (CommandContext context) throws CommandException {
public Component execute (final CommandContext context) throws CommandException {
final Bot bot = context.bot;
final List<Bot> bots = bot.bots;
@@ -78,7 +78,7 @@ public class NetMessageCommand extends Command {
)
).color(NamedTextColor.DARK_GRAY);
for (Bot eachBot : bots) {
for (final Bot eachBot : bots) {
if (!eachBot.loggedIn) continue;
eachBot.chat.tellraw(component);
}