Skip to content

Commit 60e7cff

Browse files
committed
Remove unneeded use of final qualifier
1 parent 56e624d commit 60e7cff

6 files changed

Lines changed: 14 additions & 22 deletions

File tree

bootstrap/bukkit/src/main/java/dev/triassic/template/bukkit/command/BukkitCommander.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public interface BukkitCommander extends Commander, ForwardingAudience.Single {
3131
* @param sender the {@link CommandSender}
3232
* @return a new {@link BukkitCommander}
3333
*/
34-
static BukkitCommander from(final CommandSender sender) {
34+
static BukkitCommander from(CommandSender sender) {
3535
return new BukkitCommanderImpl(sender);
3636
}
3737

@@ -45,16 +45,14 @@ static BukkitCommander from(final CommandSender sender) {
4545
/**
4646
* A record implementation of {@link BukkitCommander}.
4747
*/
48-
record BukkitCommanderImpl(CommandSender sender)
49-
implements BukkitCommander {
50-
48+
record BukkitCommanderImpl(CommandSender sender) implements BukkitCommander {
5149
@Override
5250
public Audience audience() {
5351
return BukkitTemplatePlugin.getAdventure().sender(sender);
5452
}
5553

5654
@Override
57-
public boolean hasPermission(final String permission) {
55+
public boolean hasPermission(String permission) {
5856
return sender.hasPermission(permission);
5957
}
6058
}

bootstrap/bungeecord/src/main/java/dev/triassic/template/bungee/command/BungeeCommander.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public interface BungeeCommander extends Commander, ForwardingAudience.Single {
3131
* @param sender the {@link CommandSender}
3232
* @return a new {@link BungeeCommander}
3333
*/
34-
static BungeeCommander from(final CommandSender sender) {
34+
static BungeeCommander from(CommandSender sender) {
3535
return new BungeeCommanderImpl(sender);
3636
}
3737

@@ -45,16 +45,14 @@ static BungeeCommander from(final CommandSender sender) {
4545
/**
4646
* A record implementation of {@link BungeeCommander}.
4747
*/
48-
record BungeeCommanderImpl(CommandSender sender)
49-
implements BungeeCommander {
50-
48+
record BungeeCommanderImpl(CommandSender sender) implements BungeeCommander {
5149
@Override
5250
public Audience audience() {
5351
return BungeeTemplatePlugin.getAdventure().sender(sender);
5452
}
5553

5654
@Override
57-
public boolean hasPermission(final String permission) {
55+
public boolean hasPermission(String permission) {
5856
return sender.hasPermission(permission);
5957
}
6058
}

bootstrap/fabric/src/main/java/dev/triassic/template/fabric/command/FabricCommander.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public interface FabricCommander extends Commander, ForwardingAudience.Single {
3131
* @param source the {@link CommandSourceStack}
3232
* @return a new {@link FabricCommander}
3333
*/
34-
static FabricCommander from(final CommandSourceStack source) {
34+
static FabricCommander from(CommandSourceStack source) {
3535
return new FabricCommanderImpl(source);
3636
}
3737

@@ -46,14 +46,13 @@ static FabricCommander from(final CommandSourceStack source) {
4646
* A record implementation of {@link FabricCommander}.
4747
*/
4848
record FabricCommanderImpl(CommandSourceStack source) implements FabricCommander {
49-
5049
@Override
5150
public Audience audience() {
5251
return source.audience();
5352
}
5453

5554
@Override
56-
public boolean hasPermission(final String permission) {
55+
public boolean hasPermission(String permission) {
5756
return Permissions.check(source, permission);
5857
}
5958
}

bootstrap/neoforge/src/main/java/dev/triassic/template/neoforge/command/NeoForgeCommander.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public interface NeoForgeCommander extends Commander, ForwardingAudience.Single
3131
* @param source the {@link CommandSourceStack}
3232
* @return a new {@link NeoForgeCommander}
3333
*/
34-
static NeoForgeCommander from(final CommandSourceStack source) {
34+
static NeoForgeCommander from(CommandSourceStack source) {
3535
return new NeoForgeCommanderImpl(source);
3636
}
3737

@@ -46,14 +46,13 @@ static NeoForgeCommander from(final CommandSourceStack source) {
4646
* A record implementation of {@link NeoForgeCommander}.
4747
*/
4848
record NeoForgeCommanderImpl(CommandSourceStack source) implements NeoForgeCommander {
49-
5049
@Override
5150
public Audience audience() {
5251
return NeoForgeTemplatePlugin.getAdventure().audience(source);
5352
}
5453

5554
@Override
56-
public boolean hasPermission(final String permission) {
55+
public boolean hasPermission(String permission) {
5756
return true; // TODO: PermissionAPI.getPermission(source, permission)
5857
}
5958
}

bootstrap/paper/src/main/java/dev/triassic/template/paper/command/PaperCommander.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public interface PaperCommander extends Commander, ForwardingAudience.Single {
3030
* @param source the {@link CommandSourceStack}
3131
* @return a new {@link PaperCommander}
3232
*/
33-
static PaperCommander from(final CommandSourceStack source) {
33+
static PaperCommander from(CommandSourceStack source) {
3434
return new PaperCommanderImpl(source);
3535
}
3636

@@ -45,14 +45,13 @@ static PaperCommander from(final CommandSourceStack source) {
4545
* A record implementation of {@link PaperCommander}.
4646
*/
4747
record PaperCommanderImpl(CommandSourceStack source) implements PaperCommander {
48-
4948
@Override
5049
public Audience audience() {
5150
return source.getSender();
5251
}
5352

5453
@Override
55-
public boolean hasPermission(final String permission) {
54+
public boolean hasPermission(String permission) {
5655
return source.getSender().hasPermission(permission);
5756
}
5857
}

bootstrap/velocity/src/main/java/dev/triassic/template/velocity/command/VelocityCommander.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public interface VelocityCommander extends Commander, ForwardingAudience.Single
3030
* @param sender the {@link CommandSource}
3131
* @return a new {@link VelocityCommander}
3232
*/
33-
static VelocityCommander from(final CommandSource sender) {
33+
static VelocityCommander from(CommandSource sender) {
3434
return new VelocityCommanderImpl(sender);
3535
}
3636

@@ -45,14 +45,13 @@ static VelocityCommander from(final CommandSource sender) {
4545
* A record implementation of {@link VelocityCommander}.
4646
*/
4747
record VelocityCommanderImpl(CommandSource sender) implements VelocityCommander {
48-
4948
@Override
5049
public Audience audience() {
5150
return sender;
5251
}
5352

5453
@Override
55-
public boolean hasPermission(final String permission) {
54+
public boolean hasPermission(String permission) {
5655
return sender.hasPermission(permission);
5756
}
5857
}

0 commit comments

Comments
 (0)