Skip to content

Commit

Permalink
Refactor bad smells: (LandlordPlugin#144)
Browse files Browse the repository at this point in the history
- InnerClassMayBeStatic
Inner classes that do not reference their enclosing instances can be made static.
This prevents a common cause of memory leaks and uses less memory per instance of the class.
  • Loading branch information
MartinWitt authored and Aurelien30000 committed Feb 21, 2023
1 parent 61119ba commit a5af9ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ public void onCommand(Properties properties, Arguments arguments) {
plugin.getUtilsManager().sendBasecomponent(properties.getPlayer(), msg.create());
}

public class Confirm extends SubCommand {
public static class Confirm extends SubCommand {

public Confirm() {
super("confirm",
Expand Down

0 comments on commit a5af9ff

Please sign in to comment.