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

@@ -15,11 +15,11 @@ public abstract class Command {
public ChatPacketType[] disallowedPacketTypes;
public Command (
String name,
String description,
String[] usages,
String[] aliases,
TrustLevel trustLevel
final String name,
final String description,
final String[] usages,
final String[] aliases,
final TrustLevel trustLevel
) {
this.name = name;
this.description = description;
@@ -30,12 +30,12 @@ public abstract class Command {
}
public Command (
String name,
String description,
String[] usages,
String[] aliases,
TrustLevel trustLevel,
boolean consoleOnly
final String name,
final String description,
final String[] usages,
final String[] aliases,
final TrustLevel trustLevel,
final boolean consoleOnly
) {
this.name = name;
this.description = description;
@@ -46,13 +46,13 @@ public abstract class Command {
}
public Command (
String name,
String description,
String[] usages,
String[] aliases,
TrustLevel trustLevel,
boolean consoleOnly,
ChatPacketType[] disallowedPacketTypes
final String name,
final String description,
final String[] usages,
final String[] aliases,
final TrustLevel trustLevel,
final boolean consoleOnly,
final ChatPacketType[] disallowedPacketTypes
) {
this.name = name;
this.description = description;